From 2e0043ad61cd7b18341cef436fa7b8130a1b7410 Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Sat, 20 May 2017 13:57:41 +0300 Subject: [PATCH] Fix: "warning: redundant linker flag specified for library `ole32`" llvm-config seems to output this library name correctly now, removing the need for the hack in "librustc_llvm/build.rs". --- src/librustc_llvm/build.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs index 3fd75146193..ba568857959 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -273,11 +273,8 @@ fn main() { } } - // LLVM requires symbols from this library, but apparently they're not printeds + // LLVM requires symbols from this library, but apparently they're not printed // during llvm-config? - 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");