summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-07-02 17:02:16 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-07-08 15:43:17 +0100
commitb5fe3eaf1a0bcbc98d274902f5e38f2c2ad71dbc (patch)
tree3c1a2f7d9f7ad52cd8b8bebcb3a0feef40e579c1 /auto
parent0e6cc6dcfbd0c019bcd1b264252aeb88303b7362 (diff)
downloadunit-b5fe3eaf1a0bcbc98d274902f5e38f2c2ad71dbc.tar.gz
unit-b5fe3eaf1a0bcbc98d274902f5e38f2c2ad71dbc.tar.bz2
auto, wasm-wc: Copy the .so into build/lib/unit/modules/
Normally when the language modules are built, they are built directly into the build/lib/unit/modules/ directory. This then allows Unit to find them without being installed. This is useful for things like the pytests. This wasn't happening for the wasm-wasi-component language module. So we now copy it over and give it the right name as part of the make/build process. Reported-by: Andrei Zeliankou <zelenkov@nginx.com> Fixes: 4e6d7e876 ("Wasm-wc: Wire it up to the build system") Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'auto')
-rw-r--r--auto/modules/wasm-wasi-component2
1 files changed, 2 insertions, 0 deletions
diff --git a/auto/modules/wasm-wasi-component b/auto/modules/wasm-wasi-component
index e0b211de..287d2707 100644
--- a/auto/modules/wasm-wasi-component
+++ b/auto/modules/wasm-wasi-component
@@ -110,6 +110,8 @@ ${NXT_WCM_MODULE}: ${NXT_WCM_MOD_CARGO}
${NXT_WCM_MOD_CARGO}: ${NXT_WCM_DEPS}
$NXT_CARGO_CMD
+ @install -p $NXT_WCM_MOD_CARGO \\
+ build/lib/unit/modules/${NXT_WCM_MOD_NAME}
install: ${NXT_WCM_MODULE}-install