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

Under features = ["nightly_stdsimd"], only enable stdarch_x86_avx512 feature on x86 or x86_64 targets #225

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

zachs18
Copy link
Contributor

@zachs18 zachs18 commented Feb 8, 2024

... as the feature does not exist on other targets.

$ cargo new mwe
$ cd mwe
$ cargo add bytemuck -F nightly_stdsimd
$ cargo +nightly build --target aarch64-unknown-linux-gnu
   Compiling bytemuck v1.14.2
error[E0635]: unknown feature `stdarch_x86_avx512`
 --> /home/zachary/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bytemuck-1.14.2/src/lib.rs:7:50
  |
7 | #![cfg_attr(feature = "nightly_stdsimd", feature(stdarch_x86_avx512))]
  |                                                  ^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `bytemuck` (lib) due to 1 previous error

@Lokathor
Copy link
Owner

Lokathor commented Feb 8, 2024

I'm shouting and stamping my foot at the existence of other arches, and also at the same time trying to get people to program for an ARM target. Such is life.

@Lokathor Lokathor merged commit 1afddf9 into Lokathor:main Feb 8, 2024
14 checks passed
@Lokathor
Copy link
Owner

Lokathor commented Feb 9, 2024

Released bytemuck-1.14.3

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