Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use wrapped strings for target components #9

Merged
merged 17 commits into from
Jun 4, 2020
Merged

Use wrapped strings for target components #9

merged 17 commits into from
Jun 4, 2020

Conversation

Jake-Shadle
Copy link
Member

Various components of target triples such as environment, vendor, and operating system can be specified externally from rustc via custom targets. This change allows cfg-expr to still evaluate those custom targets, as before they would not be parsed due to them being closed sets of only the builtin targets of rustc.

This also adds optional support for the target-lexicon crate (behind the targets feature flag) so that more targets than the builtin ones can be more easily evaluated against an expression.

Resolves: #8

@Jake-Shadle Jake-Shadle merged commit fe6fd99 into master Jun 4, 2020
@Jake-Shadle Jake-Shadle deleted the update branch June 4, 2020 10:06
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.

Switch away from enums towards strings in TargetInfo?
1 participant