Open hjyamauchi opened 1 week ago
CC @egorzhdan
Hmm, looks like this code might need to change: https://github.com/swiftlang/swift/blob/8a78496368d579c97df381469402ee3352065091/lib/AST/ModuleDependencies.cpp#L502-L508
However, the Windows CI seems to be passing now, so I wonder if there is a difference between the CI and the local build config.
I didn't encounter this during a toolchain build, but in an internal app build. So, the Windows CI build may not trigger this particular issue. I hope that anyone other than me can reproduce with the reduced test example.
The code doesn't need to change, it is correct. The problem is that we are building the libraries as static libraries rather than dynamic libraries, which is why they are failing to link.
The issue here is that we are generating a static resilient module and distributing the swiftinterface now. When the swiftinterface was being re-serialised, we would drop the static indicator resulting in the module trying to be dynamically linked when it was static.
Description
It seems that I recently started getting link errors related to
swiftCxx.lib
andswiftCxxStdlib.lib
such as:Windows (x64/arm64):
where I presume it should probably need to load instead
libswiftCxx.lib
andlibswiftCxxStdlib.lib
which actually exist in the toolchain directory, as opposed toswiftCxx.lib
andswiftCxxStdlib.lib
which don't exist there.Locally reverting https://github.com/swiftlang/swift/pull/77559 (and https://github.com/swiftlang/swift-installer-scripts/pull/344) seems to make this error go away.
Reproduction
On a recent toolchain build in the main branch:
Windows
Expected behavior
Successful linking, no link errors.
Environment
With a recent main-branch toolchain build on windows.
Additional information
No response