Skip to content

Commit

Permalink
wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Feb 23, 2021
1 parent 242cfd4 commit 69d4405
Show file tree
Hide file tree
Showing 5 changed files with 2,111 additions and 1 deletion.
24 changes: 24 additions & 0 deletions build_wasm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

set -ex

$WASI_ROOT/bin/clang \
--sysroot=$WASI_ROOT/share/wasi-sysroot \
-target wasm32-unknown-wasi \
-Ofast \
-fno-exceptions \
-fvisibility=hidden \
-mexec-model=reactor \
-Wl,-error-limit=0 \
-Wl,-O3 \
-Wl,--lto-O3 \
-Wl,--strip-all \
-Wl,--allow-undefined \
-Wl,--export-dynamic \
-Wl,--export-table \
-Wl,--export=malloc \
-Wl,--export=free \
./build/c/*.c \
./src/native/*.c \
-I./build \
-o ./build/llhttp.wasm
Loading

0 comments on commit 69d4405

Please sign in to comment.