We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9650cf commit fa6a8ecCopy full SHA for fa6a8ec
stdlib/cmake/modules/SwiftSource.cmake
@@ -640,7 +640,12 @@ function(_compile_swift_files
640
endif()
641
642
set(line_directive_tool "${SWIFT_SOURCE_DIR}/utils/line-directive")
643
- set(swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc")
+ # line-directive needs full path on Windows.
644
+ if (CMAKE_SYSTEM_NAME STREQUAL Windows)
645
+ set(swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc.exe")
646
+ else()
647
+ set(swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc")
648
+ endif()
649
set(swift_compiler_tool_dep)
650
if(SWIFT_INCLUDE_TOOLS)
651
# Depend on the binary itself, in addition to the symlink.
0 commit comments