Skip to content

Commit f915288

Browse files
committed
Docker: Genericise MODULE_PREBUILD_wasm for re-use
Rename this variable to MODULE_PREBUILD_wasm_common so it can be used by both the existing wasm dockerfile and a new wasm-wasi-component dockerfile. Signed-off-by: Andrew Clayton <[email protected]>
1 parent ef369cf commit f915288

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/docker/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ CONTAINER_wasm ?= debian:$(VARIANT)-slim
8080
CONFIGURE_wasm ?= wasm --include-path=\`pwd\`/pkg/contrib/wasmtime/crates/c-api/include --lib-path=/usr/lib/\$$(dpkg-architecture -q DEB_HOST_MULTIARCH)/
8181
INSTALL_wasm ?= wasm-install
8282
RUN_wasm ?= /bin/true
83-
define MODULE_PREBUILD_wasm
83+
MODULE_PREBUILD_wasm ?= $(MODULE_PREBUILD_wasm_common)
84+
85+
define MODULE_PREBUILD_wasm_common
8486
export RUST_VERSION=1.71.0 \\\n \
8587
\ \ \ \&\& export RUSTUP_HOME=/usr/src/unit/rustup \\\n \
8688
\ \ \ \&\& export CARGO_HOME=/usr/src/unit/cargo \\\n \

0 commit comments

Comments
 (0)