-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[build-script] Install SwiftSyntax to usr/lib instead of usr/lib/swift #28663
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
[build-script] Install SwiftSyntax to usr/lib instead of usr/lib/swift #28663
Conversation
@swift-ci Please test |
@swift-ci Please build toolchain |
Is |
Linux Toolchain (Ubuntu 16.04) Install command |
Build failed |
macOS Toolchain Install command |
SwiftSyntax is not part of the standard library and thus should not be installed in usr/lib/swift. This also removes the code to install SwiftSyntax's .swiftmodule file since that code path was never exercised.
961db23
to
91ca8ca
Compare
Verified that the stress tester still runs in the new toolchain and that libSwiftSyntax now lives in /usr/lib Fixed some Python Lint errors, re-running CI to pick them up. @swift-ci Please smoke 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.
Thank you!
@swift-ci please smoke test macOS platform |
Oh, forgot about this one. @swift-ci Please smoke test and merge |
@swift-ci Please smoke test |
@ahoppen seems that it has passed, I'll go ahead and merge :) |
@compnerd Thanks! |
SwiftSyntax in the toolchain is only needed to run the stress tester executable. If a third-party library wants to use it, they are supposed to depend on the SwiftPM package.
As such, SwiftSyntax should not be installed in
usr/lib/swift
where the standard library lives. This PR changes the install location of SwiftSyntax to beusr/lib
.This also removes the code to install SwiftSyntax's
.swiftmodule
and.swiftdoc
file since that code path was never exercised.