-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Use libcxx from Darwin SDKs when building LLVM and Swift #62125
Conversation
@swift-ci please test |
@swift-ci please build toolchain |
@swift-ci please test Apple Silicon |
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 makes sense to me, but you should make sure that you don’t use -nostdinc++ or -nostdinc when building, since that would disable the default place where clang looks for libc++ headers.
Windows toolchain job fails with
which happens for other PRs as well, so considering this unrelated to this change. |
It seems we are using |
For macOS test, we are hitting
This happened for other PRs (e.g. #62121 in https://ci.swift.org/job/swift-PR-macos/4836) but it seems to have clear up in later attempts (e.g. https://ci.swift.org/job/swift-PR-macos/4844/) so retrying it |
@swift-ci please test macOS |
The Apple Silicon bot seems to be hitting issues in finding libc++ headers (which we did not hit in the regular one)
|
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.
I cannot really comment on the change in practice, but the commit message and the change look like they match. I assume that this was a change to the layout of the SDK? Do we need to be worried about building against old layouts?
@compnerd This change to SDK has shipped since Xcode 12.5. We are assuming you need something >= Xcode 12.5 to build Swift already I believe. |
Realized that the Apple Silicon failure is legit, and it fact it now happens on a regular bot which did not inherit the symlink from a previous run @hyp kindly provided test changes in #62139 -- on my side I would need to clean up any existing symlinks, since they could become stale (e.g. point to an installation of Xcode that is no longer present) and cause/mask compiler errors. |
Those are present since Xcode 12.5, so we don't need to copy them anymore from the toolchain In this scenario, clean up any existing symlink in incremental builds to avoid masking or causing errors in the future. Addresses rdar://102387542
841f36b
to
5519977
Compare
@swift-ci please test |
@swift-ci please build toolchain |
@swift-ci please test Apple Silicon |
New changes with the cleanup at 5519977 -- I would suggest to use These new runs are expected to fail for macOS, mainly want to be sure I did not regress the other platforms |
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.
Thanks for the comments about the versioning!
We did not need to go back to the old build-script-impl product, so closing this PR |
Those are present since Xcode 12.5, so we don't need to copy them
anymore from the toolchain
In this scenario, clean up any existing symlink in incremental builds to
avoid masking or causing errors in the future.
Addresses rdar://102387542