From e2b01754b66ba5c575569e561744eff99e6b5339 Mon Sep 17 00:00:00 2001 From: Sargun Vohra Date: Tue, 4 Aug 2026 23:50:19 -0700 Subject: [PATCH] build: Make the emdawnwebgpu suspension mode configurable (#4451) --- vendor/dawn.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/dawn.cmake b/vendor/dawn.cmake index 86f47ccdc..502a5a503 100644 --- a/vendor/dawn.cmake +++ b/vendor/dawn.cmake @@ -11,6 +11,8 @@ endif() if(MLN_WEBGPU_EMDAWN) set(MLN_WEBGPU_EMDAWN_PORT "emdawnwebgpu" CACHE STRING "Emscripten port name or path used for emdawnwebgpu") + set(MLN_WEBGPU_EMDAWN_SUSPEND "-sASYNCIFY=1" + CACHE STRING "Emscripten suspension link option for emdawnwebgpu (-sASYNCIFY=1 or -sJSPI)") message(STATUS "Configuring emdawnwebgpu port: ${MLN_WEBGPU_EMDAWN_PORT}") add_library(mbgl-vendor-dawn INTERFACE) @@ -26,7 +28,7 @@ if(MLN_WEBGPU_EMDAWN) mbgl-vendor-dawn INTERFACE "--use-port=${MLN_WEBGPU_EMDAWN_PORT}" - "-sASYNCIFY=1" + "${MLN_WEBGPU_EMDAWN_SUSPEND}" ) set_target_properties(