Skip to content

Runtimes: fix a couple of runtime build bugs #82582

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 2 commits into
base: release/6.2
Choose a base branch
from

Conversation

compnerd
Copy link
Member

  • Explanation:
    This avoids the introduction of ODR violations in the Concurrency runtime builds due to missing build flags. It also cleans up the overlinking of swift_Concurrency into swift_StringProcessing.
  • Scope:
    This impacts the builds of swift_Concurrency and swift_StringProcessing when built with the new build system.
  • Issues:
  • Original PRs:
    Runtimes: adjust the linking to _Concurrency #82577 Runtimes: avoid ODR violations in _Concurrency #82578
  • Risk:
    These are relatively low risk changes - they only impact how we build the libraries.
  • Testing:
    Built the runtime libraries on Windows at desk and CI.
  • Reviewers:
    @etcwilde

compnerd added 2 commits June 27, 2025 14:08
`_Concurrency` is being implicitly imported and then linked into the
runtime. Disable the implicit import of the concurrency runtime to allow
proper control over the linkage for the library.
When building the standard libraries with the LLVM ADT types, we use the
local definition which have been modified to avoid ODR violations.
However, due to the intermingling of the compiler and runtime
implementations, we cannot isolate the headers properly to ensure that
the right definition is used. We need to ensure that we pass along
`SWIFT_RUNTIME` when processing headers to avoid references to the
unsafe references to the LLVM Support library.
@compnerd compnerd requested a review from a team as a code owner June 27, 2025 21:15
@compnerd
Copy link
Member Author

@swift-ci please test

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

Successfully merging this pull request may close these issues.

1 participant