From effba2339986e1c46163f8c8ae1311e94367bbee Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Fri, 6 Sep 2024 21:08:25 +0100 Subject: w-h/0.2.0/shared.mk: Use the right adaptor Now that the wasi-http 0.2.0 components are using a shared Makefile, make the echo-request component use the proxy adaptor while the rest use the reactor adaptor. Signed-off-by: Andrew Clayton --- c/wasi-http/0.2.0/shared.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'c/wasi-http/0.2.0/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* -- cgit