Swift: swiftmodule file added to linker input files when using -DCMAKE_BUILD_TYPE=Debug
I don't know whether this should be considered a bug in Swift or a bug in CMake, but the problem described here in great detail and with a very nice reproducer only occurs when building Swift modules with >128 source files under CMake. Certainly swiftc
is passing arguments to the linker that it won't accept but that's a product of how swiftc
is being used by the CMake-generated build system, Swift Package Manager and Xcode also build using the swift tools and don't have this problem.