Skip to content

[release/9.0-staging] Fix build break with cmake 4.0 #114278

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

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 4, 2025

Backport of #114277 to release/9.0-staging

/cc @akoeplinger

Customer Impact

  • Customer reported
  • Found internally

This is an infrastructure/build-only change and required for us to build with cmake 4.0+.

Regression

  • Yes
  • No

No, it was caused by a change in cmake 4.0

Testing

CI testing

Risk

Low. This is a build-only change.

cmake 4.0 no longer sets the CMAKE_OSX_SYSROOT variable for macOS targets: https://cmake.org/cmake/help/v4.0/release/4.0.html#other-changes

> Builds targeting macOS no longer choose any SDK or pass an -isysroot flag to the compiler by default. Instead, compilers are expected to choose a default macOS SDK on their own. In order to use a compiler that does not do this, users must now specify -DCMAKE_OSX_SYSROOT=macosx when configuring their build.

We need to stop passing the variable to swiftc in that case and rely on the default behavior.
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

@akoeplinger
Copy link
Member

Infra change required to build. Tell mode. Applying servicing-approved.

@akoeplinger akoeplinger added the Servicing-approved Approved for servicing release label Apr 4, 2025
@lewing lewing merged commit a9c314d into release/9.0-staging Apr 5, 2025
103 of 109 checks passed
@akoeplinger akoeplinger deleted the backport/pr-114277-to-release/9.0-staging branch April 5, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants