-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-cfg-exprArea: Platform cfg expressionsArea: Platform cfg expressionsA-configurationArea: cargo config files and env varsArea: cargo config files and env varsA-target-dependenciesArea: [target.'cfg(foo)'.dependencies]Area: [target.'cfg(foo)'.dependencies]S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
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
pocesar, trevyn, YaronWittenstein, huntc, dsherret and 3 more
Metadata
Metadata
Assignees
Labels
A-cfg-exprArea: Platform cfg expressionsArea: Platform cfg expressionsA-configurationArea: cargo config files and env varsArea: cargo config files and env varsA-target-dependenciesArea: [target.'cfg(foo)'.dependencies]Area: [target.'cfg(foo)'.dependencies]S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.