Update emscripten Dockerfile to 3.1.19

This commit is contained in:
Duc Thanh Nguyen
2022-08-25 13:08:13 +02:00
committed by Marenz
parent 22a0c46eae
commit 318dedf439
3 changed files with 24 additions and 9 deletions
+10 -1
View File
@@ -40,7 +40,8 @@ else
BUILD_DIR="$1"
fi
apt-get update && apt-get install lz4
apt-get update
apt-get install lz4 --no-install-recommends
WORKSPACE=/root/project
@@ -61,12 +62,20 @@ then
echo -n "$CIRCLE_SHA1" >commit_hash.txt
fi
# Disable warnings for unqualified "move()" calls, introduced and enabled by
# default in clang-16 which is what the emscripten docker image uses.
# Additionally, disable the warning for unknown warnings here, as this script is
# also used with earlier clang versions.
CMAKE_CXX_FLAGS="-Wno-unqualified-std-cast-call -Wno-unknown-warning-option"
mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
emcmake cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBoost_USE_STATIC_LIBS=1 \
-DBoost_USE_STATIC_RUNTIME=1 \
-DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}" \
-DTESTS=0 \
..
make soljson