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

More expressive feature syntax #10

Closed
calebzulawski opened this issue Oct 8, 2019 · 1 comment
Closed

More expressive feature syntax #10

calebzulawski opened this issue Oct 8, 2019 · 1 comment

Comments

@calebzulawski
Copy link
Owner

Architectures currently support an expansion:
[x86|x86_64] expands to both x86 and x86_64.

It might be useful to add this syntax to features as well:
x86+[sse|sse+sse2] expands to x86+sse and x86+sse+sse2.

It might also be useful to create some sort of permutation syntax:
x86+[sse,popcnt] expands to x86+sse, x86+popcnt and x86+sse+popcnt?

Since many (but definitely not all) features imply the existence of other features, maybe there should be a way to specify sequential features rather than permutation:
x86+{sse+sse2} expands to x86+sse, x86+sse+sse2 (not sold on this syntax, there might be a more obvious way of denoting this).

@calebzulawski
Copy link
Owner Author

This is incompatible with how targets are treated now, so closing for now.

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

No branches or pull requests

1 participant