You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[6.0] Fix host/target products with --static-swift-stdlib (#7743)
Cherry-pick of #7695.
**Explanation**: Given the following conditions:
- `--static-swift-stdlib` is enabled (it only affects "target" destination products, "host" destination products are always dynamic)
- the building subset contains both "host" and "target" destination products derived from the same product.
- the product imports `Foundation` (that has private dependency libs)
then the build randomly failed due to the race condition of the `Objects.LinkFileList` creation.
Reproducible project: https://github.com/kateinoigakukun/swift-autolink-issue-repro
**Scope**: isolated to packages with plugins
**Risk**: low, the change was incubated on `main` for a few weeks now
**Testing**: Added a new automated test case
**Issue**: N/A
**Reviewer**: @MaxDesiatov
Co-authored-by: Yuta Saito <[email protected]>
0 commit comments