-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[target.'cfg(all(target_arch="x86_64", not(debug_assertions)))'] in .cargo/config doesn't seem to work #5777
Comments
I believe this is a "bug" with the execution of |
|
@buybackoff So with |
What's the workaround for this? Configurations inside There is also no option of specifying rustflags in a The use-case here is simple but I assume very common: Using different |
cargo -Z profile-rustflags,on rustc 1.75.0-nightly (aa1a71e9e 2023-10-26) |
I have this in my
.cargo/config
: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
The text was updated successfully, but these errors were encountered: