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
Fix build of host&target destination products with --static-swift-stdlib (#7695)
### Motivation:
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
### Modifications:
This commit fixes the issue by distinguishing the temporary link file
list response file name by the `-tool` suffix.
I think it would be better to add assertions in `LLBuildManifest` to
avoid such unintentional target overwrites later.
### Result:
Fix the build for the above case.
0 commit comments