Skip to content

Conversation

@aomahony-saronic
Copy link
Contributor

The CARGO_CFG_TARGET_ENV variable, as stated here:

https://doc.rust-lang.org/reference/conditional-compilation.html#target_env

Is only specified for disambiguation, meaning that some platforms specify it themselves to values like "gnu" (Nix's buildRustCrate does this). Therefore, to prevent failure when the string is not blank, the default case is allowed.

Copy link
Contributor

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, that makes sense, thanks!

@madsmtm madsmtm merged commit c1fa376 into rust-lang:main Oct 31, 2025
79 checks passed
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