Resolves LNK1181 by emitting rustc-link-search for lib/windows/amd64 the same way jarvis-app does.
7 lines
256 B
Rust
7 lines
256 B
Rust
fn main() {
|
|
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
|
|
let lib_path = std::path::Path::new(&manifest_dir)
|
|
.join("..\\..\\lib\\windows\\amd64");
|
|
|
|
println!("cargo:rustc-link-search=native={}", lib_path.display());
|
|
}
|