Skip to content

Commit eda889c

Browse files
jakllschJorge Aparicio
authored and
Jorge Aparicio
committed
libstd: define std::env::consts::ARCH for sparc64
1 parent 5672c9b commit eda889c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libstd/env.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ pub mod consts {
712712
/// - powerpc
713713
/// - powerpc64
714714
/// - s390x
715+
/// - sparc64
715716
#[stable(feature = "env", since = "1.0.0")]
716717
pub const ARCH: &'static str = super::arch::ARCH;
717718

@@ -843,6 +844,11 @@ mod arch {
843844
pub const ARCH: &'static str = "s390x";
844845
}
845846

847+
#[cfg(target_arch = "sparc64")]
848+
mod arch {
849+
pub const ARCH: &'static str = "sparc64";
850+
}
851+
846852
#[cfg(target_arch = "le32")]
847853
mod arch {
848854
pub const ARCH: &'static str = "le32";

0 commit comments

Comments
 (0)