Skip to content

Commit d6053dc

Browse files
authored
Merge pull request #26379 from akyrtzi/SWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT
2 parents 62c1cf3 + 4f622ed commit d6053dc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ option(SWIFT_BUILD_STATIC_SDK_OVERLAY
6161
"Build static variants of the Swift SDK overlay"
6262
FALSE)
6363

64+
option(SWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT
65+
"If not building stdlib, controls whether to build 'stdlib/toolchain' content"
66+
TRUE)
67+
6468
# In many cases, the CMake build system needs to determine whether to include
6569
# a directory, or perform other actions, based on whether the stdlib or SDK is
6670
# being built at all -- statically or dynamically. Please note that these
@@ -1078,7 +1082,9 @@ endif()
10781082
if(SWIFT_BUILD_STDLIB)
10791083
add_subdirectory(stdlib)
10801084
else()
1081-
add_subdirectory(stdlib/toolchain)
1085+
if(SWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT)
1086+
add_subdirectory(stdlib/toolchain)
1087+
endif()
10821088

10831089
# Some tools (e.g. swift-reflection-dump) rely on a host swiftReflection, so
10841090
# ensure we build that when building tools.

0 commit comments

Comments
 (0)