Skip to content

[runtime] Update CMake to use TARGET_SDKS (NFC) #5003

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

modocache
Copy link
Contributor

The add_swift_library CMake function takes an optional TARGET_SDKS parameter. When used, only CMake targets for the specified SDKs are added.

Refactor stdlib/public/runtime to use this parameter. This also eliminates logic that determines additional flags or source files to include based on SWIFT_HOST_VARIANT, which makes it easier for hosts to add targets for different platforms.

This pull request was split out of #4972, which addresses SR-1362.

The `add_swift_library` CMake function takes an optional `TARGET_SDKS`
parameter. When used, only CMake targets for the specified SDKs are added.

Refactor `stdlib/public/runtime` to use this parameter. This also eliminates
logic that determines additional flags or source files to include based on
`SWIFT_HOST_VARIANT`, which makes it easier for hosts to add targets for
different platforms.
@modocache
Copy link
Contributor Author

@swift-ci Please clean test

@modocache
Copy link
Contributor Author

@gottesmm Looks like a clean test worked just fine here. Good to merge?

@gottesmm
Copy link
Contributor

Looking now

@gottesmm
Copy link
Contributor

LGTM!

@gottesmm gottesmm merged commit 581f1b0 into swiftlang:master Sep 30, 2016
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.

4 participants