libstd: define std::env::consts::ARCH for sparc64
This commit is contained in:
parent
5672c9b606
commit
eda889c5bf
1 changed files with 6 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue