Skip to content

Conversation

@cmcgee1024
Copy link
Member

@cmcgee1024 cmcgee1024 commented Dec 19, 2025

When using an SDK with the --swift-sdk build parameter this information is provided to Swift Build as part of the build request so that it can use it instead of the host SDK.

When using an SDK with the `--swift-sdk` build parameter this
information is provided to Swift Build as part of the build
request so that it can use it instead of the host SDK.
@cmcgee1024
Copy link
Member Author

@swift-ci please test

platformName = "android"
sdkName = platformName
// FIXME remove this case
} else if self.buildParameters.triple.isWasm {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can just remove this now, it's unreachable code.

@cmcgee1024 cmcgee1024 marked this pull request as ready for review January 16, 2026 17:19
@cmcgee1024
Copy link
Member Author

@swift-ci please test

@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

@cmcgee1024
Copy link
Member Author

@swift-ci test Windows

1 similar comment
@cmcgee1024
Copy link
Member Author

@swift-ci test Windows

@rconnell9
Copy link
Contributor

@swift-ci test windows

verboseFlag // clang will be invoked to link so the verbose flag is valid for it
+ inherited

otherLdFlags += buildParametersLinkFlags
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless there's a specific reason to order it this way we usually prefer to put $(inherited) at the end of the list

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do this in a follow-up PR.

@cmcgee1024 cmcgee1024 merged commit 5123bf0 into swiftlang:main Jan 21, 2026
73 of 75 checks passed
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.

5 participants