Skip to content

[CMake] Fix a couple SourceKit CMake issues. #40235

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

Conversation

cwakamo
Copy link
Contributor

@cwakamo cwakamo commented Nov 17, 2021

[CMake] Correctly order the arguments when setting up sourcekitdInProc_Static.

The shared arguments should come first, followed by the headers.
Otherwise, things don't work correctly, and CMake thinks there are no sources in sourcekitdInProc_Static.

This is for rdar://problem/85511244.


[CMake] Removed an overwrite of the SOURCEKIT_DEPLOYMENT_TARGET setting.

This setting is set early in SourceKit's CMake logic to match Swift's CMake settings.
However, it was then reset back to the empty string. The CMake logic would then see that it was unset and use the host OS as the deployment target.

Thankfully, the compiled binaries have been correct without this change, but sourcekitd.framework's Info.plist when building for iOS was incorrect.
By removing the reset, the correct value propagates to the right places.

This is for rdar://problem/85511244 and addresses rdar://problem/68656762.

…c_Static.

The shared arguments should come first, followed by the headers.
Otherwise, things don't work correctly, and CMake thinks there are no sources in sourcekitdInProc_Static.

This is for <rdar://problem/85511244>.
This setting is set early in SourceKit's CMake logic to match Swift's CMake settings.
However, it was then reset back to the empty string. The CMake logic would then see that it was unset and use the host OS as the deployment target.

Thankfully, the compiled binaries have been correct without this change, but sourcekitd.framework's Info.plist when building for iOS was incorrect.
By removing the reset, the correct value propagates to the right places.

This is for <rdar://problem/85511244> and addresses <rdar://problem/68656762>.
@cwakamo
Copy link
Contributor Author

cwakamo commented Nov 17, 2021

@swift-ci Please smoke test

@compnerd
Copy link
Member

Windows failures are related to #40236

@compnerd
Copy link
Member

@swift-ci please test Windows platform

@cwakamo cwakamo merged commit b553a92 into swiftlang:main Dec 3, 2021
@cwakamo cwakamo deleted the eng/PR-85511244-fix-some-SourceKit-CMake-issues branch December 3, 2021 23:09
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