Skip to content

[6.2🍒] Bootstrap: Install dispatch in stage0 #81143

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

Open
wants to merge 1 commit into
base: release/6.2
Choose a base branch
from

Conversation

etcwilde
Copy link
Contributor

@etcwilde etcwilde commented Apr 28, 2025

Cherry-pick of: #81128

The concurrency runtimes require that dispatch is installed or it will fail to load at launch. The C library is built as part of the concurrency build but is not installed. We need to install a copy of dispatch so that programs that link concurrency run.

(cherry picked from commit f36391d)

  • Explanation:
    Concurrency depends on corelibs-libdispatch. It builds part of corelibs libdispatch as part of the concurrency build but does not install it so installing the compiler that uses concurrency fails to launch because libdispatch isn't found. Build and install corelibs libdispatch as part of the stage0 toolchain build.
  • Scope: This only impacts bootstrap builds and has no impact on Apple platforms.
  • Risk: Low. The bootstrap build is only used for bringing up the compiler in new environments, not on Apple platforms.
  • Reviewers: @MaxDesiatov
  • Testing: Local testing. This patch fixed the same issue on the main branch.
  • Fixes: rdar://150159526

The concurrency runtimes require that dispatch is installed or it will
fail to load at launch. The C library is built as part of the
concurrency build but is not installed. We need to install a copy of
dispatch so that programs that link concurrency run.

(cherry picked from commit f36391d)
@etcwilde etcwilde requested a review from a team as a code owner April 28, 2025 18:03
@etcwilde
Copy link
Contributor Author

@swift-ci please test

@etcwilde
Copy link
Contributor Author

@swift-ci please test macOS

1 similar comment
@etcwilde
Copy link
Contributor Author

@swift-ci please test macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant