Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit a8cfea8

Browse files
committed
Rebuild wasm-wasi-component when any of its dependencies change
Have cargo run if for example src/wasm-wasi-component/src/lib.rs is changed, or any of the other files that should perhaps trigger a rebuild. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
1 parent b65e49c commit a8cfea8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

auto/modules/wasm-wasi-component

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ else
9191
fi
9292

9393

94+
NXT_WCM_DEPS=" \
95+
build/src/nxt_unit.o \
96+
src/wasm-wasi-component/build.rs \
97+
src/wasm-wasi-component/wrapper.h \
98+
src/wasm-wasi-component/src/lib.rs \
99+
"
100+
94101
cat << END >> $NXT_MAKEFILE
95102

96103
.PHONY: ${NXT_WCM_MODULE}
@@ -101,7 +108,7 @@ all: ${NXT_WCM_MODULE}
101108

102109
${NXT_WCM_MODULE}: ${NXT_WCM_MOD_CARGO}
103110

104-
${NXT_WCM_MOD_CARGO}: build/src/nxt_unit.o
111+
${NXT_WCM_MOD_CARGO}: ${NXT_WCM_DEPS}
105112
$NXT_CARGO_CMD
106113

107114
install: ${NXT_WCM_MODULE}-install

0 commit comments

Comments
 (0)