Closed kateinoigakukun closed 1 week ago
Given the following conditions:
--static-swift-stdlib
Foundation
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
This commit fixes the issue by distinguishing the temporary link file list response file name by the -tool suffix.
-tool
I think it would be better to add assertions in LLBuildManifest to avoid such unintentional target overwrites later.
LLBuildManifest
Fix the build for the above case.
@swift-ci test
@swift-ci test Windows
Motivation:
Given the following conditions:
--static-swift-stdlib
is enabled (it only affects "target" destination products, "host" destination products are always dynamic)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.