Open
Description
I have this in my .cargo/config
:
[target.'cfg(all(target_arch="x86_64", not(debug_assertions)))']
rustflags = ["-Ctarget-feature=+crt-static", "-Ctarget-cpu=haswell"]
But when I do a release build and check the .exe with Dependency Walker, it STILL linked dynamically to vcruntime140.dll, so the cfg
doesn't seem to work, why?
Here, someone is using both of these cfg variables in a .cargo/config file, too..
EDIT: It also doesn't work when I do cargo build --release --target=x86_64-pc-windows-msvc