MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / check_call

Function check_call

tools/shared.py:186–196  ·  view source on GitHub ↗

Like `run_process` above but treat failures as fatal and exit_with_error.

(cmd, *args, **kw)

Source from the content-addressed store, hash-verified

184
185
186def check_call(cmd, *args, **kw):
187 """Like `run_process` above but treat failures as fatal and exit_with_error."""
188 print_compiler_stage(cmd)
189 if SKIP_SUBPROCS:
190 return 0
191 try:
192 return utils.run_process(cmd, *args, **kw)
193 except subprocess.CalledProcessError as e:
194 exit_with_error("'%s' failed (%s)", shlex.join(cmd), returncode_to_str(e.returncode))
195 except OSError as e:
196 exit_with_error("'%s' failed: %s", shlex.join(cmd), e)
197
198
199def exec_process(cmd):

Callers 8

link_lldFunction · 0.85
acorn_optimizerFunction · 0.85
strip_sectionsFunction · 0.85
run_binaryen_commandFunction · 0.85
run_wasm_bindgenFunction · 0.85
run_js_toolFunction · 0.85
get_clang_versionFunction · 0.85

Calls 5

print_compiler_stageFunction · 0.85
exit_with_errorFunction · 0.85
returncode_to_strFunction · 0.85
run_processMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected