diff --git a/Runtimes/Core/core/CMakeLists.txt b/Runtimes/Core/core/CMakeLists.txt index d3bf2fd290a1..0f745f253ab9 100644 --- a/Runtimes/Core/core/CMakeLists.txt +++ b/Runtimes/Core/core/CMakeLists.txt @@ -318,6 +318,8 @@ target_link_libraries(swiftCore swiftDemangling swiftStdlibStubs swiftThreading) +target_link_options(swiftCore PRIVATE + -nostartfiles) if(NOT POLICY CMP0157) target_compile_options(swiftCore PRIVATE $