Skip to content

Commit daa58e2

Browse files
committed
Use EMSCRIPTEN flag
1 parent aec3483 commit daa58e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-webgpu/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ggml_add_backend_library(ggml-webgpu
3636

3737
add_dependencies(ggml-webgpu generate_shaders)
3838

39-
if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
39+
if(EMSCRIPTEN)
4040
set(EMDAWNWEBGPU_DIR "" CACHE PATH "Path to emdawnwebgpu_pkg")
4141

4242
target_compile_options(ggml-webgpu PRIVATE "--use-port=${EMDAWNWEBGPU_DIR}/emdawnwebgpu.port.py")

0 commit comments

Comments
 (0)