Closed
Description
Tracking issue for rust-lang/rfcs#1721
- - Add the
crt-static
target-feature- Update Cargo to pass through target-feature to build scripts - Expose rustc cfg values to build scripts cargo#3243- Implement "lazy link attributes" and implement in a gated fashion in liblibc.
Be aware that "lazy link attributes" (#[link(name = "foo", cfg(foo))]
) will never be stable.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
CARGO_CFG_TARGET_*
in build.rs briansmith/ring#322Rollup merge of rust-lang#37545 - alexcrichton:crt-static, r=brson
68 remaining items
x86_64-pc-windows-gnu/rustup-init.exe
should suggestx86_64-pc-windows-gnu
as the default host triple rust-lang/rustup#1851varkor commentedon Apr 3, 2020
This issue is still linked to in errors for
#[link(cfg(foo))]
, so shouldn't it still be open?petrochenkov commentedon May 9, 2020
@varkor
It's better to make a new issue (or remove reference to this issue from the feature gate).
link_cfg
feature gate is associated to closed issue #72059varkor commentedon May 9, 2020
I've opened #72059, though I haven't had time to look into the state of this feature.
-C target-feature=+crt-static
#71586cfg(feature = "crt-static")
available *only* for link-time configuration #72510link_cfg
#108549Rollup merge of rust-lang#108549 - clubby789:fix-link-cfg-issue, r=eholk