From 5e8d06f983d88086b2e30bbe1d5d7cc8478167ba Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sun, 15 Jun 2025 14:01:25 +0200 Subject: fix Emscripten test builds for WebGPU --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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() -- cgit v1.2.3