Skip to content

[5.1] Don't link runtime compatibility library in pure Clang targets. #2147

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

jckarter
Copy link
Contributor

swiftlang/swift#25330 introduces a compatibility library that can be statically linked into binaries
in order to back-deploy runtime fixes and new features to OSes that shipped with older Swift
runtimes. This library depends on the Swift runtime being linked into the executable, so it will
cause link errors for pure Clang products (and even if it didn't, it would be a waste of code
size). When building a product without any Swift in it, ask Swift to drive the linker without
introducing any runtime compatibility libraries (and shake out a few other unnecessary linker
flags while we're here).

rdar://problem/50057445

@jckarter
Copy link
Contributor Author

Please test with following pull request:
swiftlang/swift#25330

@swift-ci Please test

@jckarter
Copy link
Contributor Author

Please test with following pull request:
swiftlang/swift#25330

@swift-ci Please smoke test

jckarter added 2 commits June 14, 2019 13:00
swiftlang/swift#25030 introduces a compatibility library that can be statically linked into binaries
in order to back-deploy runtime fixes and new features to OSes that shipped with older Swift
runtimes. This library depends on the Swift runtime being linked into the executable, so it will
cause link errors for pure Clang products (and even if it didn't, it would be a waste of code
size). When building a product without any Swift in it, ask Swift to drive the linker without
introducing any runtime compatibility libraries (and shake out a few other unnecessary linker
flags while we're here).

rdar://problem/50057445
@jckarter jckarter force-pushed the runtime-compat-lib-clang-targets-5.1 branch from dc54de2 to 68a74e3 Compare June 14, 2019 20:01
@jckarter
Copy link
Contributor Author

@swift-ci Please smoke test

@jckarter
Copy link
Contributor Author

@swift-ci Please smoke test Linux

@aciidgh aciidgh merged commit d44bd88 into swiftlang:swift-5.1-branch Jun 17, 2019
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.

2 participants