diff --git a/cmake-toolchains/emscripten.toolchain.cmake b/cmake-toolchains/emscripten.toolchain.cmake index fbecaa1..e4423ec 100644 --- a/cmake-toolchains/emscripten.toolchain.cmake +++ b/cmake-toolchains/emscripten.toolchain.cmake @@ -76,7 +76,7 @@ if (FIPS_EMSCRIPTEN_USE_WEBGL2) set(EMSC_LINKER_FLAGS "${EMSC_LINKER_FLAGS} -s USE_WEBGL2=1") endif() if (FIPS_EMSCRIPTEN_USE_WEBGPU) - set(EMSC_LINKER_FLAGS "${EMSC_LINKER_FLAGS} -s USE_WEBGPU=1") + set(EMSC_COMMON_FLAGS "${EMSC_COMMONFLAGS} --use-port=emdawnwebgpu") endif() if (FIPS_EMSCRIPTEN_USE_EMMALLOC) set(EMSC_LINKER_FLAGS "${EMSC_LINKER_FLAGS} -s \"MALLOC='emmalloc'\"")