-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[build] properly install compiler-rt from Xcode toolchain #31247
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
Similarly to what was done for swiftlang#25547, copy the compiler-rt built-ins for embedded platforms from the Xcode toolchain into the new generated one, so to avoid link time errors. Addresses SR-12001, rdar://57837918
@swift-ci please smoke test |
@swift-ci Please Build Toolchain macOS Platform |
macOS Toolchain Install command |
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.
Couple of small comments, and +1 on @compnerd's comments. LGTM otherwise.
@swift-ci please smoke test |
@swift-ci Please Build Toolchain macOS Platform |
@swift-ci Please Build Toolchain Linux Platform |
@swift-ci please test Windows |
Another way to fix this issue would be to remove the compiler-rt lib from Swift Toolchain, and let Xcode automatically pick up the lib from XcodeDefault toolchain. |
@edymtt What is the status of this PR? Which option are we going forward with copying the compiler-rt in the swift.org toolchain or using the compiler-rt from XcodeDefault toolchain? |
@shahmishal apologies for the overdue reply -- as per previous offline discussions, we are going forward with copying the compiler-rt in the swift.org toolchain |
For the sake of completeness, the merge revolves around integrating correctly #33133 |
@swift-ci please smoke test |
@swift-ci please build Swift toolchain |
@swift-ci Please Build Toolchain |
If we copy the file from Xcode toolchain over to the open source toolchain would it cause any problem if the end user is using different Xcode than CI node? For example: |
Linux Toolchain (Ubuntu 16.04) Install command |
There shouldn't be any trouble with a version mismatch. We need a compatible library but not necessarily one that precisely matches the Xcode you're using. |
@swift-ci please smoke test macOS |
@swift-ci please smoke test Linux |
@swift-ci Please Build Toolchain |
Linux Toolchain (Ubuntu 16.04) Install command |
macOS Toolchain Install command |
Tested the program attached to SR-12001 with the macOS toolchain, now it builds fine Also inspected the generated toolchain to ensure the files are correctly copied at |
We should cherry-pick this over the |
@swift-ci please smoke test |
@swift-ci Please Build Toolchain |
Linux Toolchain (Ubuntu 16.04) Install command |
@swift-ci please smoke test |
@swift-ci please smoke test macOS |
1 similar comment
@swift-ci please smoke test macOS |
@swift-ci Please Build Toolchain macOS |
Similarly to what was done for swiftlang#25547, copy the compiler-rt built-ins for embedded platforms from the Xcode toolchain into the new generated one, so to avoid link time errors. Addresses SR-12001, rdar://57837918 Cherry-pick of swiftlang#31247 -- this also brings in the improvements from swiftlang#34049
@swift-ci please smoke test macOS |
@swift-ci Please clean Build Toolchain macOS |
@swift-ci Please Build Toolchain macOS |
|
This error does not seem related to this PR (since it happens when installing Swift) and from the log there is no concrete evidence on why those files end up with the same architecture. |
#34236 did not have this failure, so this seems to rule out my change -- trying again |
@swift-ci Please Build Toolchain macOS |
macOS Toolchain Install command |
Verified that the new toolchain (725) is able to compile the program attached to SR-12001 and that it contains the compiler-rt libraries as |
Similarly to what was done for #25547, copy the compiler-rt built-ins
for embedded platforms from the Xcode toolchain into the new generated
one, so to avoid link time errors.
Addresses SR-12001, rdar://57837918