Skip to content

Commit

Permalink
Fixed WASM build script for LLVM 14.
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Starke <[email protected]>
  • Loading branch information
daniel-starke committed Nov 5, 2023
1 parent adfc45e commit c892593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ tar -xvzf wasi-sysroot-16.0.tar.gz || exit 1
sudo tar -xvzf libclang_rt.builtins-wasm32-wasi-16.0.tar.gz -C $(dirname $(dirname $(dirname $(${CXX} -rtlib=compiler-rt --target=wasm32-wasi --print-libgcc-file-name)))) || exit 1

${CXX} --version
${CXX} --sysroot=wasi-sysroot --target=wasm32-wasi -O3 -nostdlib++ -nostartfiles -fno-exceptions -Wl,--no-entry -Wl,--export-dynamic -Wl,--import-memory -fvisibility=hidden -s -o HidWebCompiler.wasm HidWebCompiler.cpp || exit 1
${CXX} --sysroot=wasi-sysroot --target=wasm32-wasi -O3 -nostdlib++ -nostartfiles --rtlib=compiler-rt -fno-exceptions -Wl,--no-entry -Wl,--export-dynamic -Wl,--import-memory -fvisibility=hidden -s -o HidWebCompiler.wasm HidWebCompiler.cpp || exit 1
cp --no-preserve=mode,ownership HidWebCompiler.wasm ../docs/assets/HidWebCompiler.wasm || exit 1

0 comments on commit c892593

Please sign in to comment.