summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-03-01 03:06:14 +0000
committerAndrew Clayton <a.clayton@nginx.com>2024-03-09 01:36:23 +0000
commitb763ba7eccf9abbd2bc7a52050c051c4842e8f9e (patch)
tree5704dc95f43e67e6fb6a4efaa4ed2a2c2a5f637c
parent133f75fd1b29c7e41f4f362d13eebe6f61463b6d (diff)
Pretty print the wasm language module compiler output
This makes use of the infrastructure introduced in a previous commit, to pretty print the make output when building the wasm language module. You can still get the old verbose output with $ make V=1 ... Reviewed-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--auto/modules/wasm8
1 files changed, 5 insertions, 3 deletions
diff --git a/auto/modules/wasm b/auto/modules/wasm
index 1f388de6..86ae7c56 100644
--- a/auto/modules/wasm
+++ b/auto/modules/wasm
@@ -161,8 +161,9 @@ for nxt_src in $NXT_WASM_MODULE_SRCS; do
cat << END >> $NXT_MAKEFILE
$NXT_BUILD_DIR/$nxt_obj: $nxt_src $NXT_VERSION_H
- mkdir -p $NXT_BUILD_DIR/src/wasm
- \$(CC) -c \$(CFLAGS) $NXT_WASM_ADDITIONAL_FLAGS \$(NXT_INCS) \\
+ \$(v)mkdir -p $NXT_BUILD_DIR/src/wasm
+ \$(PP_CC) \$@
+ \$(v)\$(CC) -c \$(CFLAGS) $NXT_WASM_ADDITIONAL_FLAGS \$(NXT_INCS) \\
-I$NXT_WASM_INCLUDE_PATH \\
$nxt_dep_flags \\
-o $NXT_BUILD_DIR/$nxt_obj $nxt_src
@@ -186,7 +187,8 @@ all: ${NXT_WASM_MODULE}
${NXT_WASM_MODULE}: $NXT_BUILD_DIR/lib/unit/modules/${NXT_WASM_MODULE}.unit.so
$NXT_BUILD_DIR/lib/unit/modules/${NXT_WASM_MODULE}.unit.so: $nxt_objs
- \$(NXT_MODULE_LINK) -o \$@ \\
+ \$(PP_LD) \$@
+ \$(v)\$(NXT_MODULE_LINK) -o \$@ \\
$nxt_objs -L${NXT_WASM_LIB_PATH} ${NXT_WASM_LDFLAGS} $NXT_LD_OPT