Skip to content

Commit baff67d

Browse files
committed
rustc_llvm: fix linking on mingw.
1 parent 69ed6b9 commit baff67d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/librustc_llvm/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,6 @@ fn main() {
271271
if target.contains("windows-gnu") {
272272
println!("cargo:rustc-link-lib=static-nobundle=gcc_s");
273273
println!("cargo:rustc-link-lib=static-nobundle=pthread");
274+
println!("cargo:rustc-link-lib=dylib=uuid");
274275
}
275276
}

src/librustc_llvm/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(static_nobundle)]
12+
1113
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1214
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1315
html_root_url = "https://doc.rust-lang.org/nightly/")]

0 commit comments

Comments
 (0)