Skip to content

Commit 432de55

Browse files
committed
[stdlib][cmake] Disable checking for bootstrapping if the host tools aren't being built
1 parent 188a16a commit 432de55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,9 +928,9 @@ function(_compile_swift_files
928928
endif()
929929

930930
set(custom_env "PYTHONIOENCODING=UTF8")
931-
if(SWIFTFILE_IS_STDLIB OR
931+
if(SWIFT_INCLUDE_TOOLS AND (SWIFTFILE_IS_STDLIB OR
932932
# Linux "hosttools" build require builder's runtime before building the runtime.
933-
(BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" AND SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID|OPENBSD|FREEBSD")
933+
(BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" AND SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID|OPENBSD|FREEBSD"))
934934
)
935935
get_bootstrapping_swift_lib_dir(bs_lib_dir "${SWIFTFILE_BOOTSTRAPPING}")
936936
if(bs_lib_dir)

0 commit comments

Comments
 (0)