diff options
| author | Konstantin Pavlov <thresh@nginx.com> | 2024-09-05 20:22:14 +0000 |
|---|---|---|
| committer | Konstantin Pavlov <pavlov.konstantin@gmail.com> | 2024-09-09 09:55:32 -0700 |
| commit | 9998918dbbc52c279b9c74cc34f6c67f6cdba1df (patch) | |
| tree | 1b064d86d6d83b4bf73d6627175a585cd0e3f290 /pkg/contrib/src/wasmtime/Makefile | |
| parent | 5c58f9d0a0afd4eb1e043abf5f4a20ad4eb3b4cb (diff) | |
| download | unit-9998918dbbc52c279b9c74cc34f6c67f6cdba1df.tar.gz unit-9998918dbbc52c279b9c74cc34f6c67f6cdba1df.tar.bz2 | |
Packages: bump wasmtime to 24.0.0 and wasi-sysroot to 24.0.
Wasm module is now not built for Amazon Linux 2, Debian 11 and Ubuntu
2.0.04, since it requires cmake version newer than what's available on
those OSes. wasm-wasi-component is not affected.
Diffstat (limited to 'pkg/contrib/src/wasmtime/Makefile')
| -rw-r--r-- | pkg/contrib/src/wasmtime/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkg/contrib/src/wasmtime/Makefile b/pkg/contrib/src/wasmtime/Makefile index 11797fee..2a6e8abf 100644 --- a/pkg/contrib/src/wasmtime/Makefile +++ b/pkg/contrib/src/wasmtime/Makefile @@ -11,10 +11,6 @@ else CARGO = $(error Cargo (Rust package manager) not found) endif -ifeq ($(shell uname -s),Linux) -WASMTIME_ARGS=-Clink-arg=-Wl,-soname,libwasmtime.so -endif - $(TARBALLS)/wasmtime-v$(WASMTIME_VERSION)-src.tar.gz: $(call download_pkg,$(WASMTIME_URL),wasmtime) @@ -25,6 +21,11 @@ wasmtime: wasmtime-v$(WASMTIME_VERSION)-src.tar.gz .sum-wasmtime $(MOVE) .wasmtime: wasmtime - cd $< && $(CARGO) rustc --release -p wasmtime-c-api -- $(WASMTIME_ARGS) - cp $</crates/c-api/wasm-c-api/include/wasm.h $</crates/c-api/include/ + cd $< && cmake \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -S crates/c-api \ + -B target/c-api \ + --install-prefix "$(TOPSRC)/wasmtime/artifacts" + cd $< && cmake --build target/c-api + cd $< && cmake --install target/c-api touch $@ |
