-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix '++nothing+crc' is not a recognized feature for target when compiling M1 / M2 macOS #11796
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
Conversation
…ling M1 / M2 macOS `#pragma GCC target("+nothing+crc")` is means clear outs aarch64_isa_flags. However, `#pragma clang attribute push(__attribute__((target("+nothing+crc")` is not means any, then displays ignore feature. (Not reproduce Linux on ARM (ex: Raspberry Pi)) Therefore, Compiling on M1/M2 macOS add new `#pragma`.
Does this need backporting to 8.1? |
I think master branch is enough. |
I may say maybe at least 8.2 what do you think ? |
Thanks for checking. I confirmed on PHP 8.2. I think good. |
# elif defined(__APPLE__) | ||
# pragma clang attribute pop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I would just remove this - it doesn't make much sense - just unnecessary code duplication but it's a NIT really..
I think this should go to master only - this is not breaking build, right? |
Yes, This is not breaking build. |
I m good with that. |
… M2 macOS compile target (php#11796) #pragma GCC target("+nothing+crc") is means clear outs aarch64_isa_flags. However, #pragma clang attribute push(__attribute__((target("+nothing+crc") is not means any, then displays ignore feature. (Not reproduce Linux on ARM (ex: Raspberry Pi)) Therefore, Add new #pragma when compiling on M1/M2 macOS.
#pragma GCC target("+nothing+crc")
is means clear outs aarch64_isa_flags.However,
#pragma clang attribute push(__attribute__((target("+nothing+crc")
is not means any, then displays ignore feature. (Not reproduce Linux on ARM (ex: Raspberry Pi))Therefore, Add new
#pragma
when compiling on M1/M2 macOS.close: #11785