File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ ENV PATH="/root/.cargo/bin:${PATH}"
88# Install wasm-pack
99RUN cargo install wasm-pack
1010
11- # Install clang
12- RUN apt-get update && apt-get install -y clang
11+ # Install clang and binaryen (provides wasm-opt)
12+ RUN apt-get update && apt-get install -y clang binaryen
1313
1414# Create app directory
1515WORKDIR /usr/src/app
Original file line number Diff line number Diff line change 1212
1313# run wasm-opt separately so we can pass `--enable-bulk-memory`
1414define WASM_OPT_COMMAND
15- $(WASM_OPT ) --enable-bulk-memory --enable-nontrapping-float-to-int -Oz $(1 ) /*.wasm -o $(1 ) /*.wasm
15+ $(WASM_OPT ) --enable-bulk-memory --enable-nontrapping-float-to-int --enable-sign-ext - Oz $(1 ) /*.wasm -o $(1 ) /*.wasm
1616endef
1717
1818define REMOVE_GITIGNORE
You can’t perform that action at this time.
0 commit comments