Cleanup emsdk.py (#362)

- Remove some unneeded use of `global` keyword
- Use OrderedDict
- Add exit_with_error helper
- Remove SPIDERMONKY_ENGINE from emscripten config
This commit is contained in:
Sam Clegg
2019-10-07 17:02:15 -07:00
committed by GitHub
parent 29ad7fab7b
commit 6ab7f5829a
3 changed files with 248 additions and 173 deletions

View File

@@ -142,7 +142,8 @@ assert not os.path.exists(LIBC)
old_config = open(os.path.expanduser('~/.emscripten')).read()
run_emsdk('activate tot-upstream')
assert old_config == open(os.path.expanduser('~/.emscripten.old')).read()
assert os.path.exists(LIBC), 'activation supplies prebuilt libc' # TODO; test on latest as well
# TODO; test on latest as well
assert os.path.exists(LIBC), 'activation supplies prebuilt libc'
check_call(upstream_emcc + ' hello_world.cpp')
print('test tot-fastcomp')