aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-06-15 14:01:25 +0200
committerAndre Weissflog <floooh@gmail.com>2025-06-15 14:01:25 +0200
commit5e8d06f983d88086b2e30bbe1d5d7cc8478167ba (patch)
treeb57afeb8255b2e549dc850db708f988cf028948f /tests
parent8e1ca354f018a8534458edcd6c4c82d7be4fb05d (diff)
fix Emscripten test builds for WebGPU
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0effe15c..7ba984cf 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -73,7 +73,9 @@ if (EMSCRIPTEN)
set(CMAKE_EXECUTABLE_SUFFIX ".html")
set(link_flags ${link_flags} -sNO_FILESYSTEM=1 -sASSERTIONS=0 -sMALLOC=emmalloc -sINITIAL_MEMORY=33554432 --closure=1)
if (SOKOL_BACKEND STREQUAL SOKOL_WGPU)
- set(link_flags ${link_flags} -sUSE_WEBGPU=1)
+ set(c_flags ${c_flags} --use-port=emdawnwebgpu)
+ set(cxx_flags ${cxx_flags} --use-port=emdawnwebgpu)
+ set(link_flags ${link_flags} --use-port=emdawnwebgpu)
else()
set(link_flags ${link_flags} -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2)
endif()