Make sure that -lole32 ends up *after* LLVM libs on the linker command line.

This commit is contained in:
Vadim Chugunov 2017-03-24 10:59:27 -07:00
parent 3b1ba01095
commit 0f87203e2e
2 changed files with 6 additions and 7 deletions

View file

@ -259,4 +259,10 @@ fn main() {
println!("cargo:rustc-link-lib={}", stdcppname);
}
}
// LLVM requires symbols from this library, but apparently they're not printeds
// during llvm-config?
if target.contains("windows") {
println!("cargo:rustc-link-lib=ole32");
}
}

View file

@ -1662,10 +1662,3 @@ extern "C" {
pub fn LLVMRustUnsetComdat(V: ValueRef);
pub fn LLVMRustSetModulePIELevel(M: ModuleRef);
}
// LLVM requires symbols from this library, but apparently they're not printed
// during llvm-config?
#[cfg(windows)]
#[link(name = "ole32")]
extern "C" {}