Skip to content

Commit 4d85a02

Browse files
committed
Clear correct folders in build system
1 parent 824d481 commit 4d85a02

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ test-safety:
6666

6767
# Creates a release build in a containerized build environment of the static library for Alpine Linux (.a)
6868
release-build-alpine:
69-
rm -rf libwasmvm/target/release
69+
# Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
70+
rm -rf libwasmvm/target/aarch64-unknown-linux-musl/release
71+
rm -rf libwasmvm/target/x86_64-unknown-linux-musl/release
7072
# build the muslc *.a file
7173
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd)/libwasmvm:/code $(BUILDERS_PREFIX)-alpine
7274
cp libwasmvm/artifacts/libwasmvm_muslc.a internal/api
@@ -75,14 +77,17 @@ release-build-alpine:
7577

7678
# Creates a release build in a containerized build environment of the shared library for glibc Linux (.so)
7779
release-build-linux:
78-
rm -rf libwasmvm/target/release
80+
# Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
81+
rm -rf libwasmvm/target/x86_64-unknown-linux-gnu/release
82+
rm -rf libwasmvm/target/aarch64-unknown-linux-gnu/release
7983
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd)/libwasmvm:/code $(BUILDERS_PREFIX)-centos7 build_linux.sh
8084
cp libwasmvm/artifacts/libwasmvm.x86_64.so internal/api
8185
cp libwasmvm/artifacts/libwasmvm.aarch64.so internal/api
8286
make update-bindings
8387

8488
# Creates a release build in a containerized build environment of the shared library for macOS (.dylib)
8589
release-build-macos:
90+
# Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
8691
rm -rf libwasmvm/target/x86_64-apple-darwin/release
8792
rm -rf libwasmvm/target/aarch64-apple-darwin/release
8893
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd)/libwasmvm:/code $(BUILDERS_PREFIX)-cross build_macos.sh
@@ -91,6 +96,7 @@ release-build-macos:
9196

9297
# Creates a release build in a containerized build environment of the static library for macOS (.a)
9398
release-build-macos-static:
99+
# Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
94100
rm -rf libwasmvm/target/x86_64-apple-darwin/release
95101
rm -rf libwasmvm/target/aarch64-apple-darwin/release
96102
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd)/libwasmvm:/code $(BUILDERS_PREFIX)-cross build_macos_static.sh
@@ -99,7 +105,8 @@ release-build-macos-static:
99105

100106
# Creates a release build in a containerized build environment of the shared library for Windows (.dll)
101107
release-build-windows:
102-
rm -rf libwasmvm/target/release
108+
# Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
109+
rm -rf libwasmvm/target/x86_64-pc-windows-gnu/release
103110
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd)/libwasmvm:/code $(BUILDERS_PREFIX)-cross build_windows.sh
104111
cp libwasmvm/target/x86_64-pc-windows-gnu/release/wasmvm.dll internal/api
105112
make update-bindings

0 commit comments

Comments
 (0)