We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b1ba01 commit 0f87203Copy full SHA for 0f87203
src/librustc_llvm/build.rs
@@ -259,4 +259,10 @@ fn main() {
259
println!("cargo:rustc-link-lib={}", stdcppname);
260
}
261
262
+
263
+ // LLVM requires symbols from this library, but apparently they're not printeds
264
+ // during llvm-config?
265
+ if target.contains("windows") {
266
+ println!("cargo:rustc-link-lib=ole32");
267
+ }
268
src/librustc_llvm/ffi.rs
@@ -1662,10 +1662,3 @@ extern "C" {
1662
pub fn LLVMRustUnsetComdat(V: ValueRef);
1663
pub fn LLVMRustSetModulePIELevel(M: ModuleRef);
1664
1665
-
1666
1667
-// LLVM requires symbols from this library, but apparently they're not printed
1668
-// during llvm-config?
1669
-#[cfg(windows)]
1670
-#[link(name = "ole32")]
1671
-extern "C" {}
0 commit comments