diff --git a/CMakeLists.txt b/CMakeLists.txt index d091a1411..f0d62f6d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,7 +103,7 @@ endif() # subprocess spawning isn't a supported/sandbox-friendly operation on mobile OSes or in WASM if (CMAKE_SYSTEM_NAME STREQUAL "iOS" OR CMAKE_SYSTEM_NAME STREQUAL "Android" OR ANDROID - OR CMAKE_SYSTEM_NAME STREQUAL "Emscripten" OR EMSCRIPTEN) + OR CMAKE_SYSTEM_NAME STREQUAL "Emscripten" OR EMSCRIPTEN OR CMAKE_SYSTEM_NAME STREQUAL "WASI") set(LLAMA_SUBPROCESS_DEFAULT OFF) else() set(LLAMA_SUBPROCESS_DEFAULT ON)