Skip to content

[5.9 πŸ’][Explicit Modules] Handle re-mapped platform versions when specifying SDK-aligned -clang-target on Darwin platforms #1395

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

artemcm
Copy link
Contributor

@artemcm artemcm commented Jul 5, 2023

Cherry-pick of #1394

β€’ Release: 5.9
β€’ Explanation: #1322 introduced functionality to the driver where -clang-target for all Clang module dependencies is set to the target SDK deployment target on Darwin platforms. The original implementation missed the case of targeting platforms with an SDK-specified OS version re-map, causing incorrect versions to be used in those cases, in Explicit Module Builds.
β€’ Reviewed by: @xymus
β€’ Scope of Issue: Explicitly-built module dependencies of builds targeting platforms with a version remap (e.g. MacCatalyst) use incorrect/unexpected target OS versions for Clang module dependencies.
β€’ Risk: Low. This change modifies code that does not run on default (Implicit Modules) compilation code-path, and the change itself is straight-forward and small, for affected code-paths.
β€’ Testing: Automated tests added to the driver test suite.

Resolves rdar://108288193

SDK-aligned `-clang-target` on Darwin platforms

Resolves rdar://108288193
@artemcm
Copy link
Contributor Author

artemcm commented Jul 5, 2023

@swift-ci test

@artemcm artemcm requested a review from xymus July 6, 2023 15:50
@artemcm artemcm merged commit 0363bc6 into swiftlang:release/5.9 Jul 10, 2023
@artemcm artemcm deleted the 59RobustExplicitModuleClangTargetRemap branch July 10, 2023 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants