summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
Diffstat (limited to 'c')
-rw-r--r--c/wasi-http/0.2.0/shared.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/c/wasi-http/0.2.0/shared.mk b/c/wasi-http/0.2.0/shared.mk
index b61be3a..d21aca0 100644
--- a/c/wasi-http/0.2.0/shared.mk
+++ b/c/wasi-http/0.2.0/shared.mk
@@ -1,3 +1,5 @@
+WIT_DIR = ../../wit/wasi-http/0.2.0
+
# Look for wasi-sysroot in some common places, falling back
# to provided WASI_SYSROOT
ifneq ("$(wildcard /usr/wasm32-wasi)", "")
@@ -17,8 +19,8 @@ LDFLAGS = -Wl,--no-entry,--export=__heap_base,--export=__data_end,--export=mallo
all: component.wasm
bindgen:
- $(WIT_BINDGEN) c ../../wit/wasi-http/0.2.0 --autodrop-borrows yes --world proxy
- $(WIT_BINDGEN) markdown ../../wit/wasi-http/0.2.0 --world proxy
+ $(WIT_BINDGEN) c $(WIT_DIR) --autodrop-borrows yes --world proxy
+ $(WIT_BINDGEN) markdown $(WIT_DIR) --world proxy
.PHONY:
module.wasm: bindgen