18 lines
407 B
Makefile
18 lines
407 B
Makefile
_:
|
|
@just --list
|
|
|
|
# https://git.hatter.ink/hatter/learn_programming/src/branch/master/webassembly/clang-llvm.md
|
|
compile_add_wasm:
|
|
PATH=/usr/local/opt/llvm/bin:$PATH \
|
|
clang --target=wasm32 --no-standard-libraries -Wl,--export-all -Wl,--no-entry -o add.wasm add.c
|
|
|
|
run_example1:
|
|
cargo run --example example1
|
|
|
|
run_example2:
|
|
cargo run --example example2
|
|
|
|
run_example3:
|
|
cargo run --example example3
|
|
|