Skip to content

Commit

Permalink
Don't require Halide_WebGPU when using wasm (#8063) (#8065)
Browse files Browse the repository at this point in the history
* Don't require Halide_WebGPU when using wasm (#8063)

* trigger buildbots
  • Loading branch information
steven-johnson authored Feb 6, 2024
1 parent 93bff95 commit 665804c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/HalideGeneratorHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ function(_Halide_target_link_gpu_libs TARGET VISIBILITY)
target_link_libraries(${TARGET} ${VISIBILITY} "${FOUNDATION_LIBRARY}" "${METAL_LIBRARY}")
endif ()

if ("${ARGN}" MATCHES "webgpu")
if ("${ARGN}" MATCHES "webgpu" AND NOT "${ARGN}" MATCHES "wasm")
find_package(Halide_WebGPU REQUIRED)
target_link_libraries(${TARGET} ${VISIBILITY} Halide::WebGPU)
endif ()
Expand Down

0 comments on commit 665804c

Please sign in to comment.