Wasm: Wire the Wasm language module up to the build system.

This allows to configure the Wasm module, e.g

  ./configure wasm --include-path=/path/to/wasmtime-v11.0.0-x86_64-linux-c-api/include --lib-path=/path/to/wasmtime-v11.0.0-x86_64-linux-c-api/lib --rpath

--rpath as above says to set the rpath to the value of --lib-path. You
can alternatively specify a directory to use as the rpath. Or simply
omit the option to not have an rpath set.

This is mostly useful for during development where you may not have the
Wasmtime stuff installed to system directories or you want to test with
newer/different versions.

See ./configure wasm --help for a full list of options.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
This commit is contained in:
Andrew Clayton
2023-08-08 23:24:07 +01:00
parent 6a211e2b74
commit 2b4a7eedd0
3 changed files with 214 additions and 0 deletions

View File

@@ -75,4 +75,7 @@ cat << END
java OPTIONS configure Java module
run "./configure java --help" to see available options
wasm OPTIONS configure WebAssembly module
run "./configure wasm --help" to see available options
END