mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Most of linkers pull object files from static archives only if any symbol from that object file is referenced, even if the object contains a ctor code. `Setup.cpp` didn't have any symbols referenced from other code, so it was not linked in when the concurrency runtime was linked in statically. This commit moves the ctor code to `Task.cpp` to ensure that it is always linked in.