Commit e86f5fd1e for llama.cpp
commit e86f5fd1e9f584b0fcec71d7da9a92de44e8bcbf
Author: Mendy Berger <12537668+MendyBerger@users.noreply.github.com>
Date: Tue Oct 27 10:14:03 2026 -0400
cmake: WASI doesn't support spawning (#30751)
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)