From 0f69b49ff11e76a4d9965fa6718b43dbdfac661c Mon Sep 17 00:00:00 2001 From: Francisco Ferreira Date: Sat, 16 Apr 2016 09:58:37 +0100 Subject: [PATCH] ci: add ccache to clang builds --- Tools/scripts/build_ci.sh | 4 ++++ Tools/scripts/configure-ci.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Tools/scripts/build_ci.sh b/Tools/scripts/build_ci.sh index e7874f044c..543a3123c3 100755 --- a/Tools/scripts/build_ci.sh +++ b/Tools/scripts/build_ci.sh @@ -19,6 +19,10 @@ export NUTTX_GIT_VERSION="ci_test" export PX4_GIT_VERSION="ci_test" export CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime" +if [[ "$cxx_compiler" == "clang++" ]]; then + export CCACHE_CPP2="true" +fi + # If CI_BUILD_TARGET is not set, default to all of them if [ -z "$CI_BUILD_TARGET" ]; then CI_BUILD_TARGET="sitl linux navio raspilot minlure bebop px4-v2 px4-v4" diff --git a/Tools/scripts/configure-ci.sh b/Tools/scripts/configure-ci.sh index 01872c8143..6a6ad39ec9 100755 --- a/Tools/scripts/configure-ci.sh +++ b/Tools/scripts/configure-ci.sh @@ -61,6 +61,8 @@ ln -s ~/opt/$CCACHE_ROOT/ccache ~/ccache/arm-none-eabi-g++ ln -s ~/opt/$CCACHE_ROOT/ccache ~/ccache/arm-none-eabi-gcc ln -s ~/opt/$CCACHE_ROOT/ccache ~/ccache/arm-linux-gnueabihf-g++ ln -s ~/opt/$CCACHE_ROOT/ccache ~/ccache/arm-linux-gnueabihf-gcc +ln -s ~/opt/$CCACHE_ROOT/ccache ~/ccache/clang++ +ln -s ~/opt/$CCACHE_ROOT/ccache ~/ccache/clang exportline="export PATH=$HOME/ccache" exportline="${exportline}:$HOME/bin"