about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2016-03-06 08:19:51 -0500
committerJorge Aparicio <japaricious@gmail.com>2016-03-06 08:19:51 -0500
commit0b7fc0653bfd19f650a2fbad987b2fe03715e6b4 (patch)
tree5d778f54cf1fa06d0382944ed47a68a93c74367f /src/libstd/sys
parentc116ae35cf49b55bd8d82e31f1ba030cf7e63867 (diff)
downloadrust-0b7fc0653bfd19f650a2fbad987b2fe03715e6b4.tar.gz
rust-0b7fc0653bfd19f650a2fbad987b2fe03715e6b4.zip
rustbuild: fix cross compilation of libstd to i686-unknown-linux-musl
- make sure we copy the third party objects (crt*.o) to the target stage directory.
- apply the x86_64-musl logic also to the i686-musl target.
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/common/libunwind.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libstd/sys/common/libunwind.rs b/src/libstd/sys/common/libunwind.rs
index 3f70afe6ad7..c1e9782852a 100644
--- a/src/libstd/sys/common/libunwind.rs
+++ b/src/libstd/sys/common/libunwind.rs
@@ -106,9 +106,15 @@ pub type _Unwind_Exception_Cleanup_Fn =
 #[cfg_attr(any(all(target_os = "linux", not(target_env = "musl")),
                target_os = "freebsd",
                target_os = "solaris",
-               all(target_os = "linux", target_env = "musl", not(target_arch = "x86_64"))),
+               all(target_os = "linux",
+                   target_env = "musl",
+                   not(target_arch = "x86"),
+                   not(target_arch = "x86_64"))),
            link(name = "gcc_s"))]
-#[cfg_attr(all(target_os = "linux", target_env = "musl", target_arch = "x86_64", not(test)),
+#[cfg_attr(all(target_os = "linux",
+               target_env = "musl",
+               any(target_arch = "x86", target_arch = "x86_64"),
+               not(test)),
            link(name = "unwind", kind = "static"))]
 #[cfg_attr(any(target_os = "android", target_os = "openbsd"),
            link(name = "gcc"))]