1
Fork 0

libstd: define std::env::consts::ARCH for sparc64

This commit is contained in:
Jonathan A. Kollasch 2016-12-06 15:57:43 -06:00 committed by Jorge Aparicio
parent 5672c9b606
commit eda889c5bf

View file

@ -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";