cargo recompile all crates when building cross architecture with specifying +crt-static
in rustflags on Windows
#11264
Labels
C-bug
Category: bug
Problem
I specify
rustflags
in.cargo/config.toml
in my project directory like thisEvery time when i build project using
cargo build --target <target-triple>
and switch one target to another, cargo will recompile all crates rather than reuse the compiled result in thetarget/<target-triple>
directorySteps
.cargo/config.toml
in your project directoryx86_64
version which is the default on Windows usingcargo build
x86
version usingcargo build --target i686-pc-windows-msvc
x86_64
version again usingcargo build
, cargo will recompile all cratesPossible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: