-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Linux: Fix -static-executable and remove swiftImageInspectionShared #34180
Conversation
- Remove references to swiftImageInspectionShared on Linux and dont have split libraries between static/non-static linked executables. - -static-executable now links correctly Linux. Note: swift::lookupSymbol() will not work on statically linked executables but this can be worked around by using the https://github.com/swift-server/swift-backtrace package.
Please test with following pull request: @swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks largely like my original change with the addition of a test case!
Please test with following pull request: @swift-ci please test |
Build failed |
Build failed |
Please test with following pull request: @swift-ci please test |
@swift-ci test and merge |
1 similar comment
@swift-ci test and merge |
@spevans @compnerd Hiya. It looks like this change may have broken static linking on at least CentOS 7:
What should we do here? |
This change is required by swiftlang#34180
This change is required by swiftlang#34180
@brentdax Could it simply be the case that the The lit script is fairly simple but does include the command check:
Which is probably breaking it. However it looks like Btw, is there anyway to CI tests on Centos? |
I have opened #34275 to fix this. |
Remove references to swiftImageInspectionShared on Linux and dont have
split libraries between static/non-static linked executables.
-static-executable now links correctly Linux.
Note: swift::lookupSymbol() will not work on statically linked
executables but this can be worked around by using the
https://github.com/swift-server/swift-backtrace package.