We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f083c32 commit eb2c71cCopy full SHA for eb2c71c
src/bootstrap/bin/rustc.rs
@@ -129,10 +129,12 @@ fn main() {
129
// Help the libc crate compile by assisting it in finding the MUSL
130
// native libraries.
131
if let Some(s) = env::var_os("MUSL_ROOT") {
132
- let mut root = OsString::from("native=");
133
- root.push(&s);
134
- root.push("/lib");
135
- cmd.arg("-L").arg(&root);
+ if target.contains("musl") {
+ let mut root = OsString::from("native=");
+ root.push(&s);
+ root.push("/lib");
136
+ cmd.arg("-L").arg(&root);
137
+ }
138
}
139
140
// Override linker if necessary.
0 commit comments