Skip to content

Commit

Permalink
auto, wasm-wc: Copy the .so into build/lib/unit/modules/
Browse files Browse the repository at this point in the history
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 <[email protected]>
Fixes: 4e6d7e8 ("Wasm-wc: Wire it up to the build system")
Signed-off-by: Andrew Clayton <[email protected]>
  • Loading branch information
ac000 committed Jul 8, 2024
1 parent 0e6cc6d commit b5fe3ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto/modules/wasm-wasi-component
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b5fe3ea

Please sign in to comment.