File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,17 @@ option(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB
138138 "Enable build of the embedded Swift standard library and runtime"
139139 TRUE )
140140
141+ # Temporarily, by default only build embedded stdlib when building the compiler, to
142+ # unblock CI jobs that run against old(er) toolchains.
143+ option (SWIFT_ALLOW_BUILD_EMBEDDED_STDLIB_WITH_HOST_COMPILER
144+ "Build embedded Swift standard library and runtime even
145+ if we are not building our own compiler"
146+ FALSE )
147+
141148if ((NOT SWIFT_HOST_VARIANT STREQUAL "macosx" ) AND (NOT SWIFT_HOST_VARIANT STREQUAL "linux" ))
142149 set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE )
143150elseif (NOT SWIFT_INCLUDE_TOOLS)
144- # Temporarily, only build embedded stdlib when building the compiler, to
145- # unblock CI jobs that run against old(er) toolchains.
146- set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE )
151+ set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB ${SWIFT_ALLOW_BUILD_EMBEDDED_STDLIB_WITH_HOST_COMPILER} )
147152elseif (BOOTSTRAPPING_MODE STREQUAL "OFF" )
148153 set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE )
149154endif ()
You can’t perform that action at this time.
0 commit comments