-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Cann't build for armv7 with "neon" #16018
Comments
do you have the same issue with the latest stable zig release 0.10.1? |
I cann't build for arm with
is there any way to build like |
Zig is indeed passing the neon flags to Clang, so the question is why doesn't clang define the macro? #if !defined(__ARM_NEON)
#error "NEON support not enabled"
#else Can you file a bug report on Clang? Use |
I'd love to try it. However, I'm a little busy these days. I will try to find this bug some days later. |
It issue seems very related to #10411 |
(Tested on zig version 0.14.0-dev.1511+54b668f8a) 64bit ARMv8 defines __ARM_NEON and 32bit ARMv7 defines __ARM_FEATURE_SIMD32. I used the commands below.
|
It seems that |
No. To make the program at the end compile, the check would have to be changed to this:
|
Where?
It compiles for me with those flags. |
I probably have an outdated build. I'll update and try again. |
|
Works with |
Zig Version
0.9.1
Steps to Reproduce and Observed Behavior
I use
zig c++ -target arm-linux-gnueabihf -mcpu=generic+v7a+vfp3+d32+thumb2+neon -mfpu=neon -mfloat-abi=hard
and it still cann't add neon to target-feature, and I always get this
Is it a bug? Or maybe I just missed some args?
Expected Behavior
//
The text was updated successfully, but these errors were encountered: