2020-05-22 21:54:28 +00:00
|
|
|
#!/bin/sh -ex
|
|
|
|
|
|
|
|
# Pull all the submodules except llvm
|
|
|
|
# Note: Tried to use git submodule status, but it takes over 20 seconds
|
|
|
|
# shellcheck disable=SC2046
|
|
|
|
git submodule -q update --init $(awk '/path/ && !/llvm/ { print $3 }' .gitmodules)
|
|
|
|
|
|
|
|
# XXX Drop after Travis upgrades FreeBSD to 12.2 (see also .ci/install-freebsd.sh)
|
|
|
|
case $(${CXX:-c++} --version) in
|
|
|
|
*version\ 8.0.*)
|
|
|
|
fetch https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/libcxx-10.0.0.src.tar.xz
|
|
|
|
tar xf libcxx-10.0.0.src.tar.xz
|
|
|
|
export CC=clang10 CXX=clang++10
|
|
|
|
export CXXFLAGS="$CXXFLAGS -nostdinc++ -isystem $PWD/libcxx-10.0.0.src/include"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
CONFIGURE_ARGS="
|
|
|
|
-DWITH_LLVM=OFF
|
|
|
|
-DUSE_PRECOMPILED_HEADERS=OFF
|
|
|
|
-DUSE_NATIVE_INSTRUCTIONS=OFF
|
|
|
|
-DUSE_SYSTEM_FFMPEG=ON
|
|
|
|
-DUSE_SYSTEM_CURL=ON
|
|
|
|
-DUSE_SYSTEM_LIBPNG=ON
|
|
|
|
"
|
|
|
|
|
|
|
|
# shellcheck disable=SC2086
|
|
|
|
cmake -B build -G Ninja $CONFIGURE_ARGS
|
|
|
|
cmake --build build
|
|
|
|
|
2020-07-12 23:15:32 +00:00
|
|
|
ccache --show-stats
|
|
|
|
ccache --zero-stats
|