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

Function match_engine_executable

test/common.py:285–292  ·  view source on GitHub ↗
(engine, name)

Source from the content-addressed store, hash-verified

283
284
285def match_engine_executable(engine, name):
286 assert type(engine) is list
287 # Match engine executable in a way that finds cross-compilation shells, e.g. emsdk big endian node installer will give:
288 # engine = ['qemu-s390x', '-L', '/usr/s390x-linux-gnu/', '/.../node-big-endian-crosscompile/24.7.0_64bit/bin/node']
289 for e in engine:
290 basename = os.path.basename(e)
291 if name in basename:
292 return True
293
294
295def engine_is_node(engine):

Callers 5

engine_is_nodeFunction · 0.85
engine_is_v8Function · 0.85
engine_is_spidermonkeyFunction · 0.85
engine_is_denoFunction · 0.85
engine_is_bunFunction · 0.85

Calls 1

typeEnum · 0.50

Tested by

no test coverage detected