FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

use PYTHON to call emcc in wasmator · JavaScriptIOT/emscripten@ef48ed5 · GitHub

Commit ef48ed5

Browse files
committed
use PYTHON to call emcc in wasmator
1 parent 7a0bf1d commit ef48ed5

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎third_party/wasm-polyfill/wasmator.py‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ def create_pack_asmjs():
4141
emscripten.logging.debug('building pack-asmjs')
4242
output = emscripten.Cache.get_path('pack-asmjs.js')
4343
emscripten.try_delete(output)
44-
check_call([emscripten.EMCC, emscripten.path_from_root('third_party', 'wasm-polyfill', 'src', 'pack-asmjs.cpp'),
45-
emscripten.path_from_root('third_party', 'wasm-polyfill', 'src', 'unpack.cpp'),
46-
emscripten.path_from_root('tools', 'optimizer', 'parser.cpp'),
47-
'-o', output] + \
48-
'-O3 -std=c++11 -DCHECKED_OUTPUT_SIZE --memory-init-file 0 --llvm-lto 1 -s TOTAL_MEMORY=67108864 -s WASM=0 -s INVOKE_RUN=0'.split(' ') + \
49-
['-I' + emscripten.path_from_root('tools', 'optimizer')])
44+
check_call([PYTHON, emscripten.EMCC, emscripten.path_from_root('third_party', 'wasm-polyfill', 'src', 'pack-asmjs.cpp'),
45+
emscripten.path_from_root('third_party', 'wasm-polyfill', 'src', 'unpack.cpp'),
46+
emscripten.path_from_root('tools', 'optimizer', 'parser.cpp'),
47+
'-o', output] + \
48+
'-O3 -std=c++11 -DCHECKED_OUTPUT_SIZE --memory-init-file 0 --llvm-lto 1 -s TOTAL_MEMORY=67108864 -s WASM=0 -s INVOKE_RUN=0'.split(' ') + \
49+
['-I' + emscripten.path_from_root('tools', 'optimizer')])
5050
assert os.path.exists(output)
5151
open(output, 'a').write(open(emscripten.path_from_root('third_party', 'wasm-polyfill', 'src', 'pack-asmjs.js')).read())
5252
return output
@@ -56,10 +56,10 @@ def create_load_wasm_worker():
5656
emscripten.logging.debug('building load-wasm-worker')
5757
output = emscripten.Cache.get_path('load-wasm-worker.js')
5858
emscripten.try_delete(output)
59-
check_call([emscripten.EMCC, emscripten.path_from_root('third_party', 'wasm-polyfill', 'src', 'unpack.cpp'),
60-
emscripten.path_from_root('tools', 'optimizer', 'parser.cpp'),
61-
'-o', output] + \
62-
'-O3 -std=c++11 --memory-init-file 0 --llvm-lto 1 -s TOTAL_MEMORY=67108864 -s WASM=0'.split(' '))
59+
check_call([PYTHON, emscripten.EMCC, emscripten.path_from_root('third_party', 'wasm-polyfill', 'src', 'unpack.cpp'),
60+
emscripten.path_from_root('tools', 'optimizer', 'parser.cpp'),
61+
'-o', output] + \
62+
'-O3 -std=c++11 --memory-init-file 0 --llvm-lto 1 -s TOTAL_MEMORY=67108864 -s WASM=0'.split(' '))
6363
assert os.path.exists(output)
6464
open(output, 'a').write(open(emscripten.path_from_root('third_party', 'wasm-polyfill', 'src', 'load-wasm-worker.js')).read())
6565
return output

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL