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
138
138
"Enable build of the embedded Swift standard library and runtime"
139
139
TRUE )
140
140
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
+
141
148
if ((NOT SWIFT_HOST_VARIANT STREQUAL "macosx" ) AND (NOT SWIFT_HOST_VARIANT STREQUAL "linux" ))
142
149
set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE )
143
150
elseif (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} )
147
152
elseif (BOOTSTRAPPING_MODE STREQUAL "OFF" )
148
153
set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE )
149
154
endif ()
You can’t perform that action at this time.
0 commit comments