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

Failing to build cpufeatures with rustc --target=armv7-linux-androideabi #1086

Closed
cdesouza-chromium opened this issue Jun 27, 2024 · 1 comment

Comments

@cdesouza-chromium
Copy link

Hello there,

I'm not sure what arch it would be considered in this case, but when building for this configuration I'm getting the following build error:

error: This crate works only on `aarch64`, `loongarch64`, `x86`, and `x86-64` targets.
   --> ../../brave/third_party/rust/chromium_crates_io/vendor/cpufeatures-0.2.11/src/lib.rs:152:1
    |
152 | compile_error!("This crate works only on `aarch64`, `loongarch64`, `x86`, and `x86-64` targets.");
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error

I would assum that this should fall under aarch64, and I'm not sure what target_arch becomes for that triple.

Claudio.

@newpavlov
Copy link
Member

It's a target_arch = "arm" target. See #850 for more information about its support.

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

2 participants