File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,15 @@ add_swift_target_library(swiftCore
385385#
386386# For now, we build a hardcoded list of target triples of the embedded stdlib,
387387# and only when building Swift on macOS.
388- if (SWIFT_HOST_VARIANT STREQUAL "macosx" )
388+ set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB TRUE )
389+ if (NOT SWIFT_HOST_VARIANT STREQUAL "macosx" )
390+ set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE )
391+ elseif (NOT SWIFT_INCLUDE_TOOLS)
392+ # Temporarily, only build embedded stdlib when building the compiler, to
393+ # unblock CI jobs that run against old(er) toolchains.
394+ set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE )
395+ endif ()
396+ if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
389397 add_custom_target (embedded-stdlib ALL )
390398 set (EMBEDDED_STDLIB_TARGET_TRIPLES
391399 # arch module_name target triple
You can’t perform that action at this time.
0 commit comments