Skip to content

Commit

Permalink
[test] Fix line-directive on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stevapple committed Sep 11, 2020
1 parent e9650cf commit fa6a8ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stdlib/cmake/modules/SwiftSource.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,12 @@ function(_compile_swift_files
endif()

set(line_directive_tool "${SWIFT_SOURCE_DIR}/utils/line-directive")
set(swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc")
# line-directive needs full path on Windows.
if (CMAKE_SYSTEM_NAME STREQUAL Windows)
set(swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc.exe")
else()
set(swift_compiler_tool "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc")
endif()
set(swift_compiler_tool_dep)
if(SWIFT_INCLUDE_TOOLS)
# Depend on the binary itself, in addition to the symlink.
Expand Down

0 comments on commit fa6a8ec

Please sign in to comment.