Skip to content

Commit

Permalink
Wasm-wc: Add nxt_unit.o as a dependency in the auto script
Browse files Browse the repository at this point in the history
Rather than calling make itself to build nxt_unit.o make nxt_unit.o a
dependency of the main module build target.

Reported-by: Konstantin Pavlov <thresh@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
  • Loading branch information
ac000 committed Feb 22, 2024
1 parent 7a64055 commit 7b13c30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions auto/modules/wasm-wasi-component
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ all: ${NXT_WCM_MODULE}

${NXT_WCM_MODULE}: $NXT_BUILD_DIR/lib/unit/modules/$NXT_WCM_MOD_NAME

$NXT_BUILD_DIR/lib/unit/modules/$NXT_WCM_MOD_NAME:
make build/src/nxt_unit.o
$NXT_BUILD_DIR/lib/unit/modules/$NXT_WCM_MOD_NAME: build/src/nxt_unit.o
$NXT_CARGO_CMD

install: ${NXT_WCM_MODULE}-install
Expand Down

0 comments on commit 7b13c30

Please sign in to comment.