about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-01-15 05:12:30 +0000
committerbors <bors@rust-lang.org>2015-01-15 05:12:30 +0000
commit0c96037ec1676b420002a06ea337865f95abbf2c (patch)
treecec4f5e86bd892800d343105da4332ad94b3f61a /src/libstd/rt
parent451e134c180e88b06e3b747ed750e4901ca93721 (diff)
parent78278d0c76f3c868a4a4bcc47336c384968c6b3a (diff)
downloadrust-0c96037ec1676b420002a06ea337865f95abbf2c.tar.gz
rust-0c96037ec1676b420002a06ea337865f95abbf2c.zip
auto merge of #20980 : richo/rust/final-power, r=alexcrichton
Originally, this was going to be discussed and revisted, however I've been working on this for months, and a rebase on top of master was about 1 flight's worth of work so I just went ahead and did it.

This gets you as far as being able to target powerpc with, eg:

    LD_LIBRARY_PATH=./x86_64-unknown-linux-gnu/stage2/lib/ x86_64-unknown-linux-gnu/stage2/bin/rustc -C linker=powerpc-linux-gnu-gcc --target powerpc-unknown-linux-gnu hello.rs

Would really love to get this out before 1.0. r? @alexcrichton 
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/libunwind.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/rt/libunwind.rs b/src/libstd/rt/libunwind.rs
index 7cc39d7d972..dd9923307d6 100644
--- a/src/libstd/rt/libunwind.rs
+++ b/src/libstd/rt/libunwind.rs
@@ -81,6 +81,9 @@ pub const unwinder_private_data_size: uint = 2;
 #[cfg(any(target_arch = "mips", target_arch = "mipsel"))]
 pub const unwinder_private_data_size: uint = 2;
 
+#[cfg(target_arch = "powerpc")]
+pub const unwinder_private_data_size: uint = 2;
+
 #[repr(C)]
 pub struct _Unwind_Exception {
     pub exception_class: _Unwind_Exception_Class,