summary refs log tree commit diff
path: root/src/libstd/env.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-10-29 03:20:13 +0000
committerbors <bors@rust-lang.org>2015-10-29 03:20:13 +0000
commite8e6892e3cda5e3dc8408755d7a532ff74df869d (patch)
tree8eb1a4451545a0d40e4affe0eda8f4c75e319da2 /src/libstd/env.rs
parentb4af35f7b1dc30468a043dabd689365f4e518bda (diff)
parenta7d93c939a9cedbc239b3ce647fb8a22125a4d22 (diff)
downloadrust-e8e6892e3cda5e3dc8408755d7a532ff74df869d.tar.gz
rust-e8e6892e3cda5e3dc8408755d7a532ff74df869d.zip
Auto merge of #29289 - DiamondLovesYou:pnacl-std-crates, r=alexcrichton
Diffstat (limited to 'src/libstd/env.rs')
-rw-r--r--src/libstd/env.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs
index 1f6761b54cb..11eaeafec8f 100644
--- a/src/libstd/env.rs
+++ b/src/libstd/env.rs
@@ -807,6 +807,27 @@ mod os {
     pub const EXE_EXTENSION: &'static str = "exe";
 }
 
+#[cfg(all(target_os = "nacl", not(target_arch = "le32")))]
+mod os {
+    pub const FAMILY: &'static str = "unix";
+    pub const OS: &'static str = "nacl";
+    pub const DLL_PREFIX: &'static str = "lib";
+    pub const DLL_SUFFIX: &'static str = ".so";
+    pub const DLL_EXTENSION: &'static str = "so";
+    pub const EXE_SUFFIX: &'static str = ".nexe";
+    pub const EXE_EXTENSION: &'static str = "nexe";
+}
+#[cfg(all(target_os = "nacl", target_arch = "le32"))]
+mod os {
+    pub const FAMILY: &'static str = "unix";
+    pub const OS: &'static str = "pnacl";
+    pub const DLL_PREFIX: &'static str = "lib";
+    pub const DLL_SUFFIX: &'static str = ".pso";
+    pub const DLL_EXTENSION: &'static str = "pso";
+    pub const EXE_SUFFIX: &'static str = ".pexe";
+    pub const EXE_EXTENSION: &'static str = "pexe";
+}
+
 #[cfg(target_arch = "x86")]
 mod arch {
     pub const ARCH: &'static str = "x86";
@@ -842,6 +863,11 @@ mod arch {
     pub const ARCH: &'static str = "powerpc";
 }
 
+#[cfg(target_arch = "le32")]
+mod arch {
+    pub const ARCH: &'static str = "le32";
+}
+
 #[cfg(test)]
 mod tests {
     use prelude::v1::*;