Hi guys,
I'm using cargo in a msvc command line , I've upgrade the tool chain to a newer version few days ago, after that , cargo can't compile , from the command line I found cargo has passed the wrong -L
flag to rustc , it looks like
Caused by:
process didn't exit successfully: `rustc --crate-name main
--edition=2018 src/main.rs
--error-format=json
--json=diagnostic-rendered-ansi
--crate-type bin
--emit=dep-info,link
-C opt-level=3
-C embed-bitcode=no
-C metadata=00e64df514e6b2c9
--out-dir D:\notes\Rust\proj\target\release\deps
-L dependency=D:\notes\Rust\proj\target\release\deps
-L "D:/EWDK/Program Files/Windows Kits/10/Lib/10.0.19041.0/um/x64"
-L "D:/EWDK/Program Files/Windows Kits/10/Lib/10.0.19041.0/ucrt/x64"` (exit code: 1)
the last 2 -L
is wrong .
I can confirm that I've never set such values in cargo rustflags
configuration item. They are in fact the path to the old msvc tool chain. I can't figure out how cargo remember this old values. Maybe these values are cached some where? I've tried cargo clean
and rebuild but in vain. Please help!