You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow disabling Dispatch and Networking in CMakeLists.txt (swiftlang#3029)
Dispatch and Networking aren't available for Wasm and WASI. We should make these parts configurable to make it possible to turn them off when building for that platform.
option(NS_CURL_ASSUME_FEATURES_MISSING "Assume that optional libcurl features are missing rather than test the library's version, for build debugging"NO)
42
45
43
-
find_package(dispatch CONFIG REQUIRED)
46
+
if(HAS_LIBDISPATCH_API)
47
+
find_package(dispatch CONFIG REQUIRED)
48
+
endif()
44
49
45
50
include(SwiftSupport)
46
51
include(GNUInstallDirs)
@@ -53,6 +58,12 @@ set(BUILD_SHARED_LIBS NO)
53
58
add_subdirectory(CoreFoundation EXCLUDE_FROM_ALL)
54
59
set(BUILD_SHARED_LIBS${SAVED_BUILD_SHARED_LIBS})
55
60
61
+
# BlocksRuntime is already in libdispatch so it is only needed if libdispatch is
0 commit comments