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
509
509
message (STATUS "C++ Compiler (${CMAKE_CXX_COMPILER} ) Version: ${CMAKE_CXX_COMPILER_VERSION} " )
510
510
if (CMAKE_Swift_COMPILER )
511
511
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" )
512
514
else ()
513
515
message (STATUS "Swift Compiler (None)." )
514
516
endif ()
Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ function(_compile_swift_files
643
643
endif ()
644
644
645
645
set (swift_compiler_tool_dep )
646
- if (SWIFT_INCLUDE_TOOLS )
646
+ if (SWIFT_INCLUDE_TOOLS AND NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
647
647
# Depend on the binary itself, in addition to the symlink.
648
648
set (swift_compiler_tool_dep "swift-frontend" )
649
649
endif ()
You can’t perform that action at this time.
0 commit comments