Skip to content

Commit

Permalink
FIN: windows-gnu: statically link gcc_s, pthread with llvm
Browse files Browse the repository at this point in the history
  • Loading branch information
TimNN committed Apr 23, 2017
1 parent f3dda17 commit 8994277
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustc_llvm/build.rs
Expand Up @@ -265,4 +265,8 @@ fn main() {
if target.contains("windows") {
println!("cargo:rustc-link-lib=ole32");
}
if target.contains("windows-gnu") {
println!("cargo:rustc-link-lib=static-nobundle=gcc_s");
println!("cargo:rustc-link-lib=static-nobundle=pthread");
}
}
1 change: 1 addition & 0 deletions src/librustc_llvm/lib.rs
Expand Up @@ -29,6 +29,7 @@
#![feature(link_args)]
#![feature(staged_api)]
#![feature(rustc_private)]
#![feature(static_nobundle)]

extern crate libc;
#[macro_use]
Expand Down

0 comments on commit 8994277

Please sign in to comment.