mirror of https://github.com/WebAssembly/wasi-sdk
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
476 B
19 lines
476 B
#!/bin/sh
|
|
set -ex
|
|
|
|
echo "Building the docker image"
|
|
docker build \
|
|
--build-arg UID=$(id -u) --build-arg GID=$(id -g) \
|
|
-t wasi-sdk-builder:latest .
|
|
|
|
echo "Building the package in docker image"
|
|
mkdir -p ~/.ccache
|
|
docker run --rm \
|
|
--user $(id -u):$(id -g) \
|
|
-v "$PWD":/workspace:Z \
|
|
-v ~/.ccache:/home/builder/.ccache:Z \
|
|
-e NINJA_FLAGS=-v \
|
|
--tmpfs /tmp:exec \
|
|
wasi-sdk-builder:latest \
|
|
make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON
|