powerpc: Add backend support for powerpc
This commit is contained in:
parent
e5bbe8244b
commit
c8442afeb0
2 changed files with 7 additions and 3 deletions
|
@ -22,7 +22,8 @@ fn size_of_basic() {
|
|||
#[cfg(any(target_arch = "x86",
|
||||
target_arch = "arm",
|
||||
target_arch = "mips",
|
||||
target_arch = "mipsel"))]
|
||||
target_arch = "mipsel",
|
||||
target_arch = "powerpc"))]
|
||||
fn size_of_32() {
|
||||
assert_eq!(size_of::<uint>(), 4u);
|
||||
assert_eq!(size_of::<*const uint>(), 4u);
|
||||
|
@ -55,7 +56,8 @@ fn align_of_basic() {
|
|||
#[cfg(any(target_arch = "x86",
|
||||
target_arch = "arm",
|
||||
target_arch = "mips",
|
||||
target_arch = "mipsel"))]
|
||||
target_arch = "mipsel",
|
||||
target_arch = "powerpc"))]
|
||||
fn align_of_32() {
|
||||
assert_eq!(align_of::<uint>(), 4u);
|
||||
assert_eq!(align_of::<*const uint>(), 4u);
|
||||
|
|
|
@ -72,6 +72,7 @@ mod i686_unknown_dragonfly;
|
|||
mod i686_unknown_linux_gnu;
|
||||
mod mips_unknown_linux_gnu;
|
||||
mod mipsel_unknown_linux_gnu;
|
||||
mod powerpc_unknown_linux_gnu;
|
||||
mod x86_64_apple_darwin;
|
||||
mod x86_64_apple_ios;
|
||||
mod x86_64_pc_windows_gnu;
|
||||
|
@ -95,7 +96,7 @@ pub struct Target {
|
|||
/// OS name to use for conditional compilation.
|
||||
pub target_os: String,
|
||||
/// Architecture to use for ABI considerations. Valid options: "x86", "x86_64", "arm",
|
||||
/// "aarch64", and "mips". "mips" includes "mipsel".
|
||||
/// "aarch64", "mips", and "powerpc". "mips" includes "mipsel".
|
||||
pub arch: String,
|
||||
/// Optional settings with defaults.
|
||||
pub options: TargetOptions,
|
||||
|
@ -339,6 +340,7 @@ impl Target {
|
|||
i686_unknown_linux_gnu,
|
||||
mips_unknown_linux_gnu,
|
||||
mipsel_unknown_linux_gnu,
|
||||
powerpc_unknown_linux_gnu,
|
||||
arm_linux_androideabi,
|
||||
arm_unknown_linux_gnueabi,
|
||||
arm_unknown_linux_gnueabihf,
|
||||
|
|
Loading…
Add table
Reference in a new issue