Skip to content

Commit 17464c2

Browse files
committed
Make search for EMCC more robust
1 parent 8fd0b63 commit 17464c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/generator/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ function(add_wasm_executable TARGET)
3131
# target_link_libraries(${TARGET} PRIVATE ${args_DEPS})
3232
# endif ()
3333

34-
find_program(EMCC emcc REQUIRED HINTS "$ENV{EMSDK}/upstream/emscripten")
34+
find_program(
35+
EMCC emcc REQUIRED
36+
PATH_SUFFIXES upstream/emscripten
37+
HINTS ENV EMSDK
38+
)
3539

3640
# TODO: this is currently hardcoded to settings that are sensible for most of Halide's
3741
# internal purposes. Consider adding ways to customize this as appropriate.

0 commit comments

Comments
 (0)