diff options
author | Alon Zakai <azakai@google.com> | 2019-06-26 12:48:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-26 12:48:29 -0700 |
commit | 78287cefb34e8bbbcd5b1c8bfedbf33162ecaaa5 (patch) | |
tree | f40ef065eeccd1f7cbafebb317feda85590b0726 /build-js.sh | |
parent | 5d842aa0e864bb384d62c7bdcf95b5a522dbb272 (diff) | |
download | binaryen-78287cefb34e8bbbcd5b1c8bfedbf33162ecaaa5.tar.gz binaryen-78287cefb34e8bbbcd5b1c8bfedbf33162ecaaa5.tar.bz2 binaryen-78287cefb34e8bbbcd5b1c8bfedbf33162ecaaa5.zip |
binaryen.js building: don' t assume the intermediate form is bitcode (#2184)
(which it isn't when using the wasm backend with object files)
Diffstat (limited to 'build-js.sh')
-rwxr-xr-x | build-js.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build-js.sh b/build-js.sh index 77eedda77..88969178e 100755 --- a/build-js.sh +++ b/build-js.sh @@ -75,7 +75,7 @@ echo "generate embedded intrinsics module" python $BINARYEN_SCRIPTS/embedwast.py $BINARYEN_SRC/passes/wasm-intrinsics.wast $BINARYEN_SRC/passes/WasmIntrinsics.cpp -echo "building shared bitcode" +echo "compiling source files" mkdir -p ${OUT} "$EMSCRIPTEN/em++" \ @@ -171,7 +171,7 @@ mkdir -p ${OUT} $BINARYEN_SRC/wasm/wasm-validator.cpp \ $BINARYEN_SRC/wasm/wasm.cpp \ -I$BINARYEN_SRC \ - -o ${OUT}/shared.bc + -o ${OUT}/shared.o echo "building binaryen.js" @@ -858,7 +858,7 @@ export_function "_BinaryenSetAPITracing" "$EMSCRIPTEN/em++" \ $EMCC_ARGS \ $BINARYEN_SRC/binaryen-c.cpp \ - $OUT/shared.bc \ + $OUT/shared.o \ -I$BINARYEN_SRC/ \ -s EXPORTED_FUNCTIONS=[${EXPORTED_FUNCTIONS}] \ -o $OUT/binaryen${OUT_FILE_SUFFIX}.js \ |