diff options
Diffstat (limited to 'c/wasi-http')
-rw-r--r-- | c/wasi-http/0.2.0/echo-request/Makefile | 2 | ||||
-rw-r--r-- | c/wasi-http/0.2.0/shared.mk | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/c/wasi-http/0.2.0/echo-request/Makefile b/c/wasi-http/0.2.0/echo-request/Makefile index 110d078..5d24619 100644 --- a/c/wasi-http/0.2.0/echo-request/Makefile +++ b/c/wasi-http/0.2.0/echo-request/Makefile @@ -1 +1,3 @@ +ADAPTOR_TYPE = proxy + include ../shared.mk 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* |