File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ option(SWIFT_BUILD_STATIC_SDK_OVERLAY
61
61
"Build static variants of the Swift SDK overlay"
62
62
FALSE )
63
63
64
+ option (SWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT
65
+ "If not building stdlib, controls whether to build 'stdlib/toolchain' content"
66
+ TRUE )
67
+
64
68
# In many cases, the CMake build system needs to determine whether to include
65
69
# a directory, or perform other actions, based on whether the stdlib or SDK is
66
70
# being built at all -- statically or dynamically. Please note that these
@@ -1078,7 +1082,9 @@ endif()
1078
1082
if (SWIFT_BUILD_STDLIB)
1079
1083
add_subdirectory (stdlib)
1080
1084
else ()
1081
- add_subdirectory (stdlib/toolchain)
1085
+ if (SWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT)
1086
+ add_subdirectory (stdlib/toolchain)
1087
+ endif ()
1082
1088
1083
1089
# Some tools (e.g. swift-reflection-dump) rely on a host swiftReflection, so
1084
1090
# ensure we build that when building tools.
You can’t perform that action at this time.
0 commit comments