Skip to content

Commit c890a55

Browse files
Merge pull request swiftlang#4868 from kateinoigakukun/pr-972effe45a04043fc1aba1eaa9209ac85b3f9c85
[wasm][build] Handle `FOUNDATION_BUILD_TOOLS` value set to `OFF`
2 parents 40496bb + 004a9dd commit c890a55

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift)
4040
option(BUILD_SHARED_LIBS "build shared libraries" ON)
4141
option(HAS_LIBDISPATCH_API "has libdispatch API" ON)
4242
option(BUILD_NETWORKING "build FoundationNetworking module" ON)
43-
option(BUILD_TOOLS "build tools" ON)
43+
option(FOUNDATION_BUILD_TOOLS "build tools" ON)
4444
option(NS_CURL_ASSUME_FEATURES_MISSING "Assume that optional libcurl features are missing rather than test the library's version, for build debugging" NO)
4545

4646
if(HAS_LIBDISPATCH_API)

Sources/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ add_subdirectory(UUID)
22
add_subdirectory(Foundation)
33
add_subdirectory(FoundationNetworking)
44
add_subdirectory(FoundationXML)
5-
add_subdirectory(Tools)
5+
if(FOUNDATION_BUILD_TOOLS)
6+
add_subdirectory(Tools)
7+
endif()

0 commit comments

Comments
 (0)