Skip to content

Commit 5a4475c

Browse files
committed
FIN: windows-gnu: statically link gcc_s, pthread with llvm
1 parent ce1be7a commit 5a4475c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/librustc_llvm/build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,8 @@ fn main() {
265265
if target.contains("windows") {
266266
println!("cargo:rustc-link-lib=ole32");
267267
}
268+
if target.contains("windows-gnu") {
269+
println!("cargo:rustc-link-lib=static-nobundle=gcc_s");
270+
println!("cargo:rustc-link-lib=static-nobundle=pthread");
271+
}
268272
}

src/librustc_llvm/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#![feature(link_args)]
3030
#![feature(staged_api)]
3131
#![feature(rustc_private)]
32+
#![feature(static_nobundle)]
3233

3334
extern crate libc;
3435
#[macro_use]

0 commit comments

Comments
 (0)