about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstd/env.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs
index 0521f301321..d843d97420a 100644
--- a/src/libstd/env.rs
+++ b/src/libstd/env.rs
@@ -712,6 +712,7 @@ pub mod consts {
     /// - powerpc
     /// - powerpc64
     /// - s390x
+    /// - sparc64
     #[stable(feature = "env", since = "1.0.0")]
     pub const ARCH: &'static str = super::arch::ARCH;
 
@@ -843,6 +844,11 @@ mod arch {
     pub const ARCH: &'static str = "s390x";
 }
 
+#[cfg(target_arch = "sparc64")]
+mod arch {
+    pub const ARCH: &'static str = "sparc64";
+}
+
 #[cfg(target_arch = "le32")]
 mod arch {
     pub const ARCH: &'static str = "le32";