Open jwatte opened 2 years ago
Feel free to send us a patch to: https://github.com/google/cpu_features/blob/69d39934e83be9a0133d2850f15f5debd5eba06f/src/utils/list_cpu_features.c#L199-L201 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)
...
Otherwise CMake seems to correctly detect arm64 architecture and build for it.
note: You should consider to use cmake -S. -Bbuild && cmake --build build -v
instead of creating the build dir by hand and call make directly....
ugly workaround: disable the build of list_cpu_features
aka comment out the lines:
https://github.com/google/cpu_features/blob/69d39934e83be9a0133d2850f15f5debd5eba06f/CMakeLists.txt#L149-L151
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 git@github.com: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'.