-
Notifications
You must be signed in to change notification settings - Fork 268
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
list_cpu_feature doesn't build on Apple M1 #210
Comments
Feel free to send us a patch to: cpu_features/src/utils/list_cpu_features.c Lines 199 to 201 in 69d3993
here we should split this code in #elif defined(CPU_FEATURES_ARCH_AARCH64) && defined(CPU_FEATURES_OS_MACOS)
....
#elif defined(CPU_FEATURES_ARCH_AARCH64) && !defined(CPU_FEATURES_OS_MACOS)
... ref: cpu_features/include/cpu_features_macros.h Lines 87 to 97 in 69d3993
Otherwise CMake seems to correctly detect arm64 architecture and build for it. |
ugly workaround: disable the build of Lines 149 to 151 in 69d3993
|
Note that Apple no longer sells new x64 MacBooks. It's literally impossible to get a new x64 MacBook for an engineer joining a team.
Using CMake 3.22
When doing a
git clone [email protected]:google/cpu_features && cd cpu_features && mkdir build && cd build && cmake ../ && make
I get the following build errors:So, the architecture here is
arm64
notaarch64
, which is unfortunate, but a fact of life.I imagine the easiest fix might be to patch that up to alias. There was at least one other patch to do that, #150, which has been open for over a year.
And, because the world is what it is, this means that building MacOS installers for electron apps no longer works.
Just sayin'.
The text was updated successfully, but these errors were encountered: