Consider making cfg(feature = "crt-static")
available *only* for link-time configuration
#72510
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
cfg
predicates used for link-time configuration (#[link(cfg(predicate))]
#37406 #72059) may want to use data that is available only long after the regularcfg
expansion happens.For example,
crt-static
)We can come up with some predicate value during regular
cfg
expansion, but it may be different from the predicate value that we really want at link time.Is
cfg(feature = "crt-static")
ever used for regularcfg
expansion?It was created mostly with link-time configuration in mind.
We probably need to check it with crater.
The text was updated successfully, but these errors were encountered: