-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustbuild: fix cross compilation of libstd to i686-unknown-linux-musl #32078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- 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.
@@ -111,7 +111,7 @@ fn main() { | |||
println!("cargo:rustc-link-search=native={}/lib", build_dir.display()); | |||
if target.contains("android") { | |||
println!("cargo:rustc-link-lib=gcc"); | |||
} else if !target.contains("windows") { | |||
} else if !target.contains("windows") && !target.contains("musl") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated logic to match non-rustbuild builds. See
rust/src/liballoc_jemalloc/lib.rs
Lines 37 to 40 in c116ae3
#[cfg_attr(all(not(windows), | |
not(target_os = "android"), | |
not(target_env = "musl")), | |
link(name = "pthread"))] |
Looks good to me, thanks @japaric! r=me once libc is updated |
@bors: r=alexcrichton |
📌 Commit f164433 has been approved by |
⌛ Testing commit f164433 with merge 9fac71b... |
💔 Test failed - auto-mac-64-nopt-t |
@bors: retry On Sun, Mar 6, 2016 at 10:54 PM, bors [email protected] wrote:
|
- 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. --- r? @alexcrichton
r? @alexcrichton