Skip to content

Use CARGO_CFG_TARGET_FEATURE to detect CRT linkage on MSVC#1915

Open
jbg wants to merge 1 commit intodenoland:mainfrom
jbg:goose-patches
Open

Use CARGO_CFG_TARGET_FEATURE to detect CRT linkage on MSVC#1915
jbg wants to merge 1 commit intodenoland:mainfrom
jbg:goose-patches

Conversation

@jbg
Copy link

@jbg jbg commented Feb 25, 2026

Replace the CARGO_FEATURE_CRT_STATIC feature flag check (which is testing whether the non-existent Cargo feature crt-static is enabled) with CARGO_CFG_TARGET_FEATURE to correctly detect crt-static.

Replace the CARGO_FEATURE_CRT_STATIC feature flag check with
CARGO_CFG_TARGET_FEATURE to correctly detect crt-static when set
via rustflags rather than as a crate feature.
@CLAassistant
Copy link

CLAassistant commented Feb 25, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants