Fix 'emsdk install sdk-main-64bit' to produce a functioning installation. (#1444)

This commit is contained in:
juj
2024-09-03 21:02:32 +03:00
committed by GitHub
parent 122b38f2ce
commit a3fb5e8198

View File

@@ -1332,6 +1332,17 @@ def emscripten_npm_install(tool, directory):
return False
print('Done running: npm ci')
if os.path.isfile(os.path.join(directory, 'bootstrap.py')):
try:
subprocess.check_output([sys.executable, os.path.join(directory, 'bootstrap.py')],
cwd=directory, stderr=subprocess.STDOUT, env=env,
universal_newlines=True)
except subprocess.CalledProcessError as e:
errlog('Error running %s:\n%s' % (e.cmd, e.output))
return False
print('Done running: Emscripten bootstrap')
return True