Skip to content

Commit ca13658

Browse files
committed
runtime: avoid the toolchain Swift registrar
Pass `-nostartfiles` to the driver as a staged toolchain would attempt to link the Swift registrar which may not exist if the SDK is not integrated. Furthermore, the registrar to be used is locally built and not the one from the previous build.
1 parent 215db61 commit ca13658

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Runtimes/Core/core/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ target_link_libraries(swiftCore
318318
swiftDemangling
319319
swiftStdlibStubs
320320
swiftThreading)
321+
target_link_options(swiftCore PRIVATE
322+
-nostartfiles)
321323
if(NOT POLICY CMP0157)
322324
target_compile_options(swiftCore PRIVATE
323325
$<TARGET_OBJECTS:swiftRuntime>

0 commit comments

Comments
 (0)