-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Make sdkRootPath property of swift-sdk.json targetTriples object optional #8687
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
base: main
Are you sure you want to change the base?
Conversation
Would you mind adding tests that verify this change? Thanks! |
Changes like this 100% need to have accompanying documentation, otherwise anyone reading the SE is going to be extremely confused. |
Happy to document as needed, but I don't believe the optionality of
What's an SE? |
Added in afdaa3f. Happy to add more tests for this if you have suggestions. |
Swift Evolution |
@swift-ci test |
@swift-ci test windows |
@swift-ci test windows |
Makes the "sdkRootPath" property of
swift-sdk.json
optional.Motivation:
The Android SDK bundle (swiftlang/swift#80788) does not include the Android NDK's sysroot in the bundle itself, but instead relies on it being installed locally. The install location will vary, and the user will be able to configure it with a command (modulo #8584) like:
However, since the
SwiftSDKMetadataV4.sdkRootPath
property is declared as non-optional, some value must be included in theswift-sdk.json
file.@MaxDesiatov at swiftlang/swift#80788 (comment) mentions:
Modifications:
Change
SwiftSDKMetadataV4.sdkRootPath
fromString
toString?
Result:
The swift-sdk.json can now contain destinations that do not specify a
sdkRootPath
property.