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: build target libdispatch as necessary #35920
Conversation
This should not be predicated on the host libdispatch being built, only if concurrency is being built in multithreaded mode.
CC: @drexin |
@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.
Thanks!
Build failed |
Linux test failed because of a flaky test. The relevant part succeeded. |
@swift-ci smoke test Linux |
@swift-ci smoke test linux |
Hi @compnerd – Just FYI, this broke my unified build setup (which doesn't use libdispatch). I'm trying to figure out a workaround but I suspect I'll create a pull request soon. Here is the error:
|
I don't see an obvious workaround and I don't fully appreciate what this pull request is trying to solve. What does seem to be happening now is that libdispatch is now mandatory when it didn't used to be. Was this intentional? Where was the discussion? |
Digging around some more, it seems like the relationship with libdispatch has never been formalized as a CMake option, so what we end up with is a mess of code trying to infer what to do. In practice, we have a tri-state:
I think I have a solution: #35939 |
@compnerd I think this may also be the reason why the "minimal" bot is now red? Could you take a look? https://ci.swift.org/job/oss-swift-test-stdlib-with-toolchain-minimal/157/ |
@kubamracek @compnerd I would have a PR to address that leveraging the flag introduced in #35939 |
This should not be predicated on the host libdispatch being built, only
if concurrency is being built in multithreaded mode.
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.