File tree Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Builds the Rust library libwasmvm
2
- BUILDERS_PREFIX := cosmwasm/libwasmvm-builder:0102
2
+ BUILDERS_PREFIX := cosmwasm/libwasmvm-builder:0103
3
3
# Contains a full Go dev environment including CGO support in order to run Go tests on the built shared library
4
4
# This image is currently not published.
5
5
ALPINE_TESTER := cosmwasm/alpine-tester:local
@@ -76,7 +76,11 @@ bench:
76
76
# Creates a release build in a containerized build environment of the static library for Alpine Linux (.a)
77
77
release-build-alpine :
78
78
# build the muslc *.a file
79
- docker run --rm -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -alpine
79
+ docker run --rm -v $(shell pwd) /libwasmvm:/code \
80
+ -e CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-musl-gcc \
81
+ -e CC_aarch64_unknown_linux_musl=aarch64-linux-musl-gcc \
82
+ -e CFLAGS_aarch64_unknown_linux_musl=" " \
83
+ $(BUILDERS_PREFIX ) -alpine
80
84
cp libwasmvm/artifacts/libwasmvm_muslc.x86_64.a internal/api
81
85
cp libwasmvm/artifacts/libwasmvm_muslc.aarch64.a internal/api
82
86
make update-bindings
Original file line number Diff line number Diff line change 1
1
FROM --platform=linux/amd64 rust:1.82.0-alpine
2
2
3
- RUN apk add --no-cache ca-certificates build-base
3
+ RUN apk add --no-cache ca-certificates build-base llvm17-dev clang17-static
4
4
5
5
# Install C compiler for cross-compilation. This is required by
6
6
# Wasmer in https://github.com/wasmerio/wasmer/blob/2.2.1/lib/vm/build.rs.
Original file line number Diff line number Diff line change 4
4
FROM --platform=linux/amd64 debian:11-slim
5
5
6
6
RUN apt update -y \
7
- && apt install -y gcc make gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu wget
7
+ && apt install -y gcc make gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu wget clang
8
8
9
9
# GET FROM https://github.com/rust-lang/docker-rust-nightly
10
10
ENV RUSTUP_HOME=/usr/local/rustup \
Original file line number Diff line number Diff line change 1
1
# Versioned by a simple counter that is not bound to a specific CosmWasm version
2
2
# See builders/README.md
3
- BUILDERS_PREFIX := cosmwasm/libwasmvm-builder:0102
3
+ BUILDERS_PREFIX := cosmwasm/libwasmvm-builder:0103
4
4
5
5
.PHONY : docker-image-debian
6
6
docker-image-debian :
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ export TARGET_DIR="/target" # write to /target in the guest's file system to avo
7
7
# No stripping implemented (see https://github.com/CosmWasm/wasmvm/issues/222#issuecomment-2260007943).
8
8
9
9
echo " Starting aarch64-unknown-linux-gnu build"
10
- export CC=clang
11
- export CXX=clang++
12
10
export qemu_aarch64=" qemu-aarch64 -L /usr/aarch64-linux-gnu"
13
11
export CC_aarch64_unknown_linux_gnu=clang
14
12
export AR_aarch64_unknown_linux_gnu=llvm-ar
Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ export TARGET_DIR="/target" # write to /target in the guest's file system to avo
7
7
# No stripping implemented (see https://github.com/CosmWasm/wasmvm/issues/222#issuecomment-2260007943).
8
8
9
9
echo " Starting aarch64-unknown-linux-musl build"
10
- export CC =/opt/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc
10
+ export CC_aarch64_unknown_linux_musl =/opt/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc
11
11
cargo build --release --target-dir=" $TARGET_DIR " --target aarch64-unknown-linux-musl --example wasmvmstatic
12
- unset CC
13
12
14
13
echo " Starting x86_64-unknown-linux-musl build"
15
14
cargo build --release --target-dir=" $TARGET_DIR " --target x86_64-unknown-linux-musl --example wasmvmstatic
You can’t perform that action at this time.
0 commit comments