8f803c2026
Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the `target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the `powerpc64le` target does indeed set the `target_arch` as `powerpc64le`, causing a bit of inconsistency between theset two. As these are just the same instance of one instruction set, let's use `target_endian` to switch between them and only set the `target_arch` as one value. This should cut down on the number of `#[cfg]` annotations necessary and all around be a little more ergonomic.
27 lines
752 B
Rust
27 lines
752 B
Rust
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
|
|
// file at the top-level directory of this distribution and at
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
#[cfg(target_arch = "x86")]
|
|
pub fn main() { }
|
|
|
|
#[cfg(target_arch = "x86_64")]
|
|
pub fn main() { }
|
|
|
|
#[cfg(target_arch = "arm")]
|
|
pub fn main() { }
|
|
|
|
#[cfg(target_arch = "aarch64")]
|
|
pub fn main() { }
|
|
|
|
#[cfg(target_arch = "powerpc64")]
|
|
pub fn main() { }
|