Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions emcmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def has_substr(args, substr):
# See https://github.com/emscripten-core/emscripten/issues/15522
args.append(f'-DCMAKE_CROSSCOMPILING_EMULATOR={node_js}')

# Print a better error if we have no CMake executable on the PATH
if not os.path.isabs(args[0]) and not shutil.which(args[0]):
print(f'emcmake: cmake executable not found on PATH: `{args[0]}`')
return 1

# On Windows specify MinGW Makefiles or ninja if we have them and no other
# toolchain was specified, to keep CMake from pulling in a native Visual
# Studio, or Unix Makefiles.
Expand Down