-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[6.2] Build CMake on macOS if one is not preinstalled #84123
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
[6.2] Build CMake on macOS if one is not preinstalled #84123
Conversation
We build CMake on all platforms (except Darwin for an unknown reason) if CMake is not preinstalled. Since CMake 4.0 regresses certain build configurations, there's currently no way to build on Darwin without installing an older CMake version 3.x manually. This can be simplified if we build a pinned version of CMake consistently on all platforms. Addresses rdar://159939866 (cherry picked from commit 7db6c5d)
@swift-ci please test |
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.
Thank you! Would be glad to see this in 6.2 after all 🙂
@swift-ci please test macOS |
@swift-ci please test macOS Apple Silicon |
@swift-ci test |
why not ship cmake as part of the xcode clt? (while we're at it, why not also natively support cmake in xcode?) |
Xcode is an Apple commercial product, not controlled by the Swift open-source project. Suggestions for Xcode improvements should be filed via Apple's feedback assistant. |
oh okay, but i can see y'all work at apple on your profiles? can't you or someone else here just talk with your fellow xcode teammates to see if they can/want to both start shipping and supporting cmake in xcode? |
This closes a gap in the setup of the build -- while most of the macOS configurations install CMake before hand, this would avoid a hard failure when we forget to do so.
Builds on macOS that do not provide a prebuilt CMake before hand.
Build CMake on macOS if one is not preinstalled #81161
Low -- this only affects macOS configurations that do not have CMake already in the path, which are a small number of all configurations (since at desk we give clear instructions about installing prerequisites, and on CI we install those automatically).
Ensured at desk that on a macOS system with no CMake or ninja in the search path build-script is able to build those and get to the build of LLVM.