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

Automatically set -march, -mavx, etc flags based on CARGO_CFG_TARGET_FEATURE_* to support SIMD #220

Open
SabrinaJewson opened this issue Sep 9, 2024 · 0 comments

Comments

@SabrinaJewson
Copy link

It would be useful if this crate read the CARGO_CFG_TARGET_ARCH and CARGO_CFG_TARGET_FEATURE environment variables to determine appropriate -march and other -m* flags to enable with CMake. For example, CARGO_CFG_TARGET_FEATURE=mmx,sse would correspond to -mmmx and -msse, CARGO_CFG_TARGET_ARCH=skylake would corresponding to -march=skylake, etc.

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