File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -610,12 +610,12 @@ function(_compile_swift_files
610
610
endif ()
611
611
612
612
set (line_directive_tool "${SWIFT_SOURCE_DIR} /utils/line-directive" )
613
- # line-directive needs full path on Windows.
614
- if (CMAKE_SYSTEM_NAME STREQUAL Windows )
615
- set (swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH} /swiftc.exe" )
616
- else ()
617
- set (swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH} /swiftc" )
613
+
614
+ if (CMAKE_HOST_SYSTEM_NAME STREQUAL Windows )
615
+ set (HOST_EXECUTABLE_SUFFIX .exe )
618
616
endif ()
617
+ set (swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH} /swiftc${HOST_EXECUTABLE_SUFFIX} " )
618
+
619
619
set (swift_compiler_tool_dep )
620
620
if (SWIFT_INCLUDE_TOOLS )
621
621
# Depend on the binary itself, in addition to the symlink.
You can’t perform that action at this time.
0 commit comments