From b5fe3eaf1a0bcbc98d274902f5e38f2c2ad71dbc Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Tue, 2 Jul 2024 17:02:16 +0100 Subject: 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 Fixes: 4e6d7e876 ("Wasm-wc: Wire it up to the build system") Signed-off-by: Andrew Clayton --- auto/modules/wasm-wasi-component | 2 ++ 1 file changed, 2 insertions(+) (limited to 'auto/modules/wasm-wasi-component') 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 -- cgit