Make sure that -lole32 ends up *after* LLVM libs on the linker command line.
This commit is contained in:
parent
3b1ba01095
commit
0f87203e2e
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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" {}
|
||||
|
|
Loading…
Reference in New Issue