Skip to content

🍒[build] Respect DEPLOYMENT_VERSION_{IOS|TVOS|WATCHOS} for Simulator targets #78269

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
merged 1 commit into from
Dec 18, 2024

Conversation

egorzhdan
Copy link
Contributor

Explanation: This makes sure that Cxx and CxxStdlib modules are built with consistent deployment targets for iOS Simulator and iOS Device. This fixes a regression introduced in b87b263, which caused the Cxx and CxxStdlib binaries to have a deployment target version that is too new.
Scope: This changes the CMake build scripts to pass the correct -target flag to swiftc when building binaries for Simulator.
Risk: Low, this only changes the build script for CMake targets that override iOS/tvOS/watchOS deployment target.
Testing: Added compiler tests.
Issue: rdar://141232269
Reviewer: @Xazax-hun

Original PR: #78242

… targets

This makes sure that Cxx and CxxStdlib modules are built with consistent deployment targets for iOS Simulator and iOS Device.

rdar://141232269
(cherry picked from commit d1a435c)
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Dec 18, 2024
@egorzhdan egorzhdan requested a review from a team as a code owner December 18, 2024 13:28
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan merged commit e4b5459 into release/6.1 Dec 18, 2024
5 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/6.1-simulator-deployment-target branch December 18, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants