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

Function get_binaryen_version

tools/building.py:1203–1210  ·  view source on GitHub ↗
(bindir)

Source from the content-addressed store, hash-verified

1201
1202
1203def get_binaryen_version(bindir):
1204 opt = utils.find_exe(bindir, 'wasm-opt')
1205 if not os.path.exists(opt):
1206 exit_with_error('binaryen executable not found (%s). Please check your binaryen installation' % opt)
1207 try:
1208 return run_process([opt, '--version'], stdout=PIPE).stdout
1209 except subprocess.CalledProcessError:
1210 exit_with_error('error running binaryen executable (%s). Please check your binaryen installation' % opt)
1211
1212
1213def check_binaryen(bindir):

Callers 1

check_binaryenFunction · 0.85

Calls 3

exit_with_errorFunction · 0.85
run_processFunction · 0.85
existsMethod · 0.80

Tested by

no test coverage detected