summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-09-07 15:16:41 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-09-07 15:16:41 +0100
commitde4cad50fedf5a89772d72c67c75c3c6a18e1402 (patch)
tree27471f229fd33e2d80971b791380092ecbbfbd12 /c
parent164b29dead45a61661b080499275fd628c23fd47 (diff)
downloadproject_blackbird-de4cad50fedf5a89772d72c67c75c3c6a18e1402.tar.gz
project_blackbird-de4cad50fedf5a89772d72c67c75c3c6a18e1402.tar.bz2
w-h/0.2.0/shared.mk: Remove some hard coded paths
Don't hard code the WIT_BINDGEN & WASM_TOOLS paths, instead take them from the shell as either shell variables or passed directly to make. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'c')
-rw-r--r--c/wasi-http/0.2.0/shared.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/wasi-http/0.2.0/shared.mk b/c/wasi-http/0.2.0/shared.mk
index e092144..b61be3a 100644
--- a/c/wasi-http/0.2.0/shared.mk
+++ b/c/wasi-http/0.2.0/shared.mk
@@ -7,8 +7,8 @@ endif
ADAPTOR_TYPE ?= reactor
-WIT_BINDGEN = /home/andrew/src/c/wasm/git/wit-bindgen/target/release/wit-bindgen
-WASM_TOOLS = /home/andrew/src/c/wasm/git/wasm-tools/target/release/wasm-tools
+WIT_BINDGEN ?=
+WASM_TOOLS ?=
CC = clang
CFLAGS = -Wall -Wextra --target=wasm32-wasi --sysroot=$(WASI_SYSROOT)