Skip to content

Commit 27310f4

Browse files
[CMake] Exclude FoundationNetworking and _CFURLSessionInterface on WASI
Because networking is not a part of WASI Preview 1. We can add it back when it is available.
1 parent fef1083 commit 27310f4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414

1515
add_subdirectory(CoreFoundation)
1616
add_subdirectory(_CFXMLInterface)
17-
add_subdirectory(_CFURLSessionInterface)
17+
if(NOT CMAKE_SYSTEM_NAME STREQUAL "WASI")
18+
add_subdirectory(_CFURLSessionInterface)
19+
endif()
1820
add_subdirectory(Foundation)
1921
add_subdirectory(FoundationXML)
20-
add_subdirectory(FoundationNetworking)
22+
if(NOT CMAKE_SYSTEM_NAME STREQUAL "WASI")
23+
add_subdirectory(FoundationNetworking)
24+
endif()
2125
if(FOUNDATION_BUILD_TOOLS)
2226
add_subdirectory(plutil)
2327
endif()

0 commit comments

Comments
 (0)