Skip to content

Commit 430df42

Browse files
committed
build: make SWIFT_BUILD_STDLIB control the stdlib
Permit disabling the standard library build. This will allow a toolchain to be built without the standard library now that it is possible to build just the standard library without the toolchain.
1 parent 5043ed4 commit 430df42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,9 @@ endif()
10491049
# created. This then will cause SwiftSyntax to fail to build.
10501050
#
10511051
# https://bugs.swift.org/browse/SR-5975
1052-
add_subdirectory(stdlib)
1052+
if(SWIFT_BUILD_STDLIB)
1053+
add_subdirectory(stdlib)
1054+
endif()
10531055

10541056
if(SWIFT_INCLUDE_APINOTES)
10551057
add_subdirectory(apinotes)

0 commit comments

Comments
 (0)