Skip to content

Host: introduce GetSDKPath extension point for Windows #6736

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
May 1, 2023

Conversation

compnerd
Copy link
Member

Introduce a new extension point to allow a host to specify a SDK path. On Windows, there is the default global SDK path which is identified by the SDKROOT environment variable. Wire this into the process to construct the proper search paths for the Swift module when debugging.

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @bulbazord @kastiglione

@compnerd
Copy link
Member Author

I still think that it is a bit odd as we are saying "SDKPath" for Windows, except that is entirely unclear what that means - Windows SDK? Swift SDK? Oculus SDK? Something else? In any case, I've posted https://reviews.llvm.org/D149397 that we can decide if we want to go down that route. With the introduction of SDKOptions we should be able to disambiguate the SDK selection.

@compnerd
Copy link
Member Author

Partially completed in #6746. Once we get that merged, I can pull out the actual changes to support the SDK on Windows from this. Leaving this open until then.

@compnerd compnerd force-pushed the sdkroot branch 3 times, most recently from 8ebae86 to 9b15210 Compare April 29, 2023 18:29
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

Introduce a new extension point to allow a host to specify a SDK path.
On Windows, there is the default global SDK path which is identified by
the `SDKROOT` environment variable.  Wire this into the process to
construct the proper search paths for the Swift module when debugging.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@compnerd compnerd merged commit 59b1687 into swiftlang:swift/release/5.9 May 1, 2023
@compnerd compnerd deleted the sdkroot branch May 1, 2023 21:37
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