1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 02:44:40 +00:00

feat(engine): wasm experiments

This commit is contained in:
2022-11-25 01:19:37 +07:00
parent aa8d740ca9
commit 9f6e2bd0d5
6 changed files with 44 additions and 7 deletions

7
packages/matrix/run.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env sh
docker run --rm \
-v $(pwd)/src:/src \
-v $(pwd)/dist:/dist \
llvm \
clang --target=wasm32 -O3 -fno-builtin -flto -nostdlib -Wl,--no-entry -Wl,--export-all -Wl,--lto-O3 -o /dist/matrix.wasm /src/matrix.c