about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIrina Popa <irinagpopa@gmail.com>2018-07-31 15:36:38 +0300
committerIrina Popa <irinagpopa@gmail.com>2018-07-31 15:36:38 +0300
commitbaff67d51f691734ecee0faa83acee91ec16cc5d (patch)
tree32d65258d13d1235263f9e0d559db56b974948b4
parent69ed6b928cd427669bf7b8694a86b20a8b672fa7 (diff)
downloadrust-baff67d51f691734ecee0faa83acee91ec16cc5d.tar.gz
rust-baff67d51f691734ecee0faa83acee91ec16cc5d.zip
rustc_llvm: fix linking on mingw.
-rw-r--r--src/librustc_llvm/build.rs1
-rw-r--r--src/librustc_llvm/lib.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs
index 1619637b827..5910e55def3 100644
--- a/src/librustc_llvm/build.rs
+++ b/src/librustc_llvm/build.rs
@@ -271,5 +271,6 @@ fn main() {
     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");
     }
 }
diff --git a/src/librustc_llvm/lib.rs b/src/librustc_llvm/lib.rs
index 76ec5b53523..05f6b5b5fbd 100644
--- a/src/librustc_llvm/lib.rs
+++ b/src/librustc_llvm/lib.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![feature(static_nobundle)]
+
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/")]