File tree Expand file tree Collapse file tree 6 files changed +13
-3
lines changed
Expand file tree Collapse file tree 6 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ cleanup
2828
2929CMAKE_ARGS=(
3030 -G Ninja
31+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
32+ -DCMAKE_C_COMPILER_LAUNCHER=ccache
3133 -DLIGHT_TESTS:BOOL=ON
3234 -DWERROR=ON
3335)
Original file line number Diff line number Diff line change @@ -58,17 +58,22 @@ has cmake || has meson || die "No build system available"
5858# We also need at least one compiler
5959has_clang || has_gcc || die " No compiler available"
6060
61+ export CCACHE_DIR=$PWD /build-travis-ccache
62+ ccache -M4G
63+
6164if has_clang; then
6265 msg " Beginning build tests with Clang"
63- export CC=clang CXX=clang++
66+ export CC=" ccache clang" CXX=" ccache clang++"
6467 has meson && bash .travis/build-meson.sh
68+ export CC=clang CXX=clang++
6569 has cmake && bash .travis/build-cmake.sh
6670fi
6771
6872if has_gcc; then
6973 msg " Beginning build tests with GCC"
70- export CC=gcc CXX=g++
74+ export CC=" ccache gcc" CXX=" ccache g++"
7175 has meson && bash .travis/build-meson.sh
76+ export CC=gcc CXX=g++
7277 has cmake && bash .travis/build-cmake.sh
7378fi
7479
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ PACKAGES=(
1212 clang-dev
1313 gcc
1414 g++
15+ ccache
1516 cmake
1617 meson
1718 pkgconf
Original file line number Diff line number Diff line change 77# Base build packages
88PACKAGES=(
99 base-devel
10+ ccache
1011 clang
1112 cmake
1213 meson
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ PACKAGES=(
99 gcc-c++
1010 libasan
1111 libubsan
12+ ccache
1213 clang
1314 cmake
1415 meson
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ apt-get update
88apt-get install -y locales
99locale-gen en_US.UTF-8
1010
11- PACKAGES=(build-essential pkg-config cmake meson clang)
11+ PACKAGES=(build-essential pkg-config ccache cmake meson clang)
1212
1313PACKAGES+=(libprotobuf-dev protobuf-compiler)
1414PACKAGES+=(libssl-dev)
You can’t perform that action at this time.
0 commit comments