File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -509,6 +509,8 @@ message(STATUS "C Compiler (${CMAKE_C_COMPILER}) Version: ${CMAKE_C_COMPILER_VER
509509message (STATUS "C++ Compiler (${CMAKE_CXX_COMPILER} ) Version: ${CMAKE_CXX_COMPILER_VERSION} " )
510510if (CMAKE_Swift_COMPILER)
511511 message (STATUS "Swift Compiler (${CMAKE_Swift_COMPILER} ) Version: ${CMAKE_Swift_COMPILER_VERSION} " )
512+ elseif (SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER)
513+ message (FATAL_ERROR "Swift Compiler not found and SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER is set" )
512514else ()
513515 message (STATUS "Swift Compiler (None)." )
514516endif ()
Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ function(_compile_swift_files
643643 endif ()
644644
645645 set (swift_compiler_tool_dep)
646- if (SWIFT_INCLUDE_TOOLS)
646+ if (SWIFT_INCLUDE_TOOLS AND NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
647647 # Depend on the binary itself, in addition to the symlink.
648648 set (swift_compiler_tool_dep "swift-frontend" )
649649 endif ()
You can’t perform that action at this time.
0 commit comments