-
Notifications
You must be signed in to change notification settings - Fork 62
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
Precompiled header broken on Mac #1549
Comments
I don't reproduce that bug on an amd64 macOS Sequoia. Is that reproduced on an arm64 mac? What is the macOS version and compiler version? On my end I have:
It may be a compiler bug if the bug happens on arm64 compiling amd64 but not on amd64 compiling amd64. It may also be a compiler bug if the bug only happens with PCH as if the build succeeds without PCH it means the |
Yes, this is an ARM mac issue. We need to be more aware of the march flag |
Further, if I set USE_GENERIC_ARCHITECTURE to false, I get:
|
I wouldn't jump to the conclusion that it's the host architecture that matters. Could be just different versions of the toolchain. |
I think this flag needs to be set correctly for M1 Macs? Daemon/cmake/DaemonFlags.cmake Line 541 in 17ba767
|
Seems like its just not being handled correctly. |
The Mac build targets x86 by default. Arm is buildable but it won't be used unless you override CMAKE_OSX_ARCHITECTURES. |
Sure, but that does mean that Arm M1 Mac isn't being handled correctly, or it needs some special settings that are undocumented. |
Precompiled headers on Mac are still broken since #982. The problem of #1508 that USE_PRECOMPILED_HEADER is ignored was fixed: now it attempts to build a PCH. But the build does not succeed.
The text was updated successfully, but these errors were encountered: