Skip to content

Commit c5bb069

Browse files
committed
[CMake] Make sure the host tools are being built before setting the bootstrapping mode on Unix platforms
1 parent 325147f commit c5bb069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ elseif(BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" OR SWIFT_BUILD_SWIFT_SYNTAX)
870870
set(SWIFT_EXEC_FOR_SWIFT_MODULES "${CMAKE_Swift_COMPILER}")
871871
endif()
872872

873-
if(SWIFT_BUILD_SWIFT_SYNTAX)
873+
if(SWIFT_INCLUDE_TOOLS AND SWIFT_BUILD_SWIFT_SYNTAX)
874874
# Only "HOSTTOOLS" is supported in Linux when Swift parser integration is enabled.
875875
if(SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|OPENBSD|FREEBSD" AND NOT BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS")
876876
message(WARNING "Force setting BOOTSTRAPPING=HOSTTOOLS because Swift parser integration is enabled")

0 commit comments

Comments
 (0)