Open nandin-borjigin opened 5 hours ago
cc @petrochenkov, I believe there were some changes to linking with msvc?
Adding this build script helps, but I think this should only be considered a workaround and rustc should emit library search path by default.
println!("cargo:rustc-link-search=native={}/deps", out_dir.display());
Rust-to-rust dynamic linking (through import library) on Windows fails with toolchain version 1.82.0.
The build log shows that 1.82.0 is not adding any /LIBPATH arguments when invoking link.exe.
I tried this code: nandin-borjigin/rustc-1.82.0-repro
I expected to see this happen: Successful build
Instead, this happened: LINK : fatal error LNK1181: cannot open input file 'mylib.dll.lib'
Meta
rustc --version --verbose
:Backtrace
Possibly related
131995