Skip to content

[CMake] Require CMake 3.29 to enable CMP0157 - #1001

Open
charles-zablit wants to merge 1 commit into
apple:mainfrom
charles-zablit:cz/cmake/cmp0157
Open

charles-zablit wants to merge 1 commit into
apple:mainfrom
charles-zablit:cz/cmake/cmp0157

Conversation

@charles-zablit

@charles-zablit charles-zablit commented Nov 5, 2026 •

Copy link
Copy Markdown

Require CMake 3.29, which makes CMP0157 NEW: Ninja compiles each Swift module in its own step, separate from the link. The policy no longer adds -wmo to optimized builds; the toolchain build passes CMAKE_Swift_COMPILATION_MODE instead (swiftlang/swift#94066).

Tracking: swiftlang/swift#93995

assisted by Claude

@compnerd compnerd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs rework as mentioned on the other PRs

@charles-zablit charles-zablit changed the title [CMake] Enable CMP0157 and keep whole-module builds for optimized configs [CMake] Require CMake 3.29 to enable CMP0157 Nov 6, 2026
@rauhul
rauhul enabled auto-merge (squash) November 9, 2026 23:09

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants