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.
2 parents b5416a9 + fa6a8ec commit 399b190Copy full SHA for 399b190
stdlib/cmake/modules/SwiftSource.cmake
@@ -610,7 +610,12 @@ function(_compile_swift_files
610
endif()
611
612
set(line_directive_tool "${SWIFT_SOURCE_DIR}/utils/line-directive")
613
- set(swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc")
+ # 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")
618
+ endif()
619
set(swift_compiler_tool_dep)
620
if(SWIFT_INCLUDE_TOOLS)
621
# Depend on the binary itself, in addition to the symlink.
0 commit comments