summaryrefslogtreecommitdiff
path: root/c/wasi-http/0.2.0/shared.mk
diff options
context:
space:
mode:
Diffstat (limited to 'c/wasi-http/0.2.0/shared.mk')
-rw-r--r--c/wasi-http/0.2.0/shared.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/wasi-http/0.2.0/shared.mk b/c/wasi-http/0.2.0/shared.mk
index d5a7898..7e43601 100644
--- a/c/wasi-http/0.2.0/shared.mk
+++ b/c/wasi-http/0.2.0/shared.mk
@@ -7,6 +7,8 @@ endif
export WASI_SYSROOT
+ADAPTOR_TYPE ?= reactor
+
CC = clang
CFLAGS = -Wall -Wextra --target=wasm32-wasi --sysroot=$(WASI_SYSROOT)
LDFLAGS = -Wl,--no-entry,--export=__heap_base,--export=__data_end,--export=malloc,--export=free,--stack-first,-z,stack-size=$$((8*1024*1024)) -mexec-model=reactor --rtlib=compiler-rt
@@ -23,7 +25,7 @@ module.wasm: bindgen
.PHONY:
component.wasm: module.wasm
- /home/andrew/src/c/wasm/git/wasm-tools/target/release/wasm-tools component new module.wasm --adapt ../../adaptors/24.0.0/wasi_snapshot_preview1.proxy.wasm -o component.wasm
+ /home/andrew/src/c/wasm/git/wasm-tools/target/release/wasm-tools component new module.wasm --adapt ../../adaptors/24.0.0/wasi_snapshot_preview1.$(ADAPTOR_TYPE).wasm -o component.wasm
clean:
rm -f component.wasm module.wasm proxy*