diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-03-07 16:14:52 +0000 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-03-14 16:09:31 +0000 |
commit | a8cfea8b68b3734725faed366f9bea402596c20b (patch) | |
tree | 93218fc1521bd6df930fba41a94eef815f9ea464 | |
parent | b65e49c5d6b4c9395d84257b71d380f10bb5823f (diff) | |
download | unit-a8cfea8b68b3734725faed366f9bea402596c20b.tar.gz unit-a8cfea8b68b3734725faed366f9bea402596c20b.tar.bz2 |
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>
-rw-r--r-- | auto/modules/wasm-wasi-component | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/auto/modules/wasm-wasi-component b/auto/modules/wasm-wasi-component index 6c8258d7..7bcb8f72 100644 --- a/auto/modules/wasm-wasi-component +++ b/auto/modules/wasm-wasi-component @@ -91,6 +91,13 @@ else fi +NXT_WCM_DEPS=" \ + build/src/nxt_unit.o \ + src/wasm-wasi-component/build.rs \ + src/wasm-wasi-component/wrapper.h \ + src/wasm-wasi-component/src/lib.rs \ +" + cat << END >> $NXT_MAKEFILE .PHONY: ${NXT_WCM_MODULE} @@ -101,7 +108,7 @@ all: ${NXT_WCM_MODULE} ${NXT_WCM_MODULE}: ${NXT_WCM_MOD_CARGO} -${NXT_WCM_MOD_CARGO}: build/src/nxt_unit.o +${NXT_WCM_MOD_CARGO}: ${NXT_WCM_DEPS} $NXT_CARGO_CMD install: ${NXT_WCM_MODULE}-install |