Skip to content

Commit 8a816ca

Browse files
committed
Cleanup MinGW LLVM linkage workaround
1 parent e8ff4bc commit 8a816ca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/librustc_llvm/build.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,9 @@ fn main() {
293293
}
294294
}
295295

296-
// LLVM requires symbols from this library, but apparently they're not printed
297-
// during llvm-config?
296+
// Libstdc++ depends on pthread which Rust doesn't link on MinGW
297+
// since nothing else requires it.
298298
if target.contains("windows-gnu") {
299-
println!("cargo:rustc-link-lib=static-nobundle=gcc_s");
300299
println!("cargo:rustc-link-lib=static-nobundle=pthread");
301-
println!("cargo:rustc-link-lib=dylib=uuid");
302300
}
303301
}

0 commit comments

Comments
 (0)