File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -968,6 +968,13 @@ if(SWIFT_INCLUDE_TOOLS AND SWIFT_BUILD_SWIFT_SYNTAX)
968968 if (SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|OPENBSD|FREEBSD" AND NOT BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" )
969969 message (WARNING "Force setting BOOTSTRAPPING=HOSTTOOLS because Swift parser integration is enabled" )
970970 set (BOOTSTRAPPING_MODE "HOSTTOOLS" )
971+ if (NOT CMAKE_Swift_COMPILER)
972+ message (SEND_ERROR "No Swift compiler found.\n "
973+ "Tell CMake where to find the Swift compiler by setting either the "
974+ "environment variable \" SWIFTC\" or the CMake cache entry "
975+ "CMAKE_Swift_COMPILER to the full path of the compiler, or to the "
976+ "compiler name if it is in the PATH" )
977+ endif ()
971978 endif ()
972979 add_definitions (-DSWIFT_BUILD_SWIFT_SYNTAX)
973980endif ()
You can’t perform that action at this time.
0 commit comments