Skip to content

Commit

Permalink
Cleanup MinGW LLVM linkage workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Jun 19, 2020
1 parent e8ff4bc commit 8a816ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/librustc_llvm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,9 @@ fn main() {
}
}

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

0 comments on commit 8a816ca

Please sign in to comment.