[build] add ccache + Circle CI caching

This commit is contained in:
Konstantin Käfer
2017-06-30 12:49:47 -07:00
parent 92354bdc25
commit 6ca7b28e60
5 changed files with 279 additions and 315 deletions

10
scripts/launch-c.in Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# Xcode generator doesn't include the compiler as the
# first argument, Ninja and Makefiles do. Handle both cases.
if [ "$1" = "${CMAKE_C_COMPILER}" ] ; then
shift
fi
export CCACHE_CPP2=true
exec "${C_LAUNCHER}" "${CMAKE_C_COMPILER}" "$@"

10
scripts/launch-cxx.in Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# Xcode generator doesn't include the compiler as the
# first argument, Ninja and Makefiles do. Handle both cases.
if [ "$1" = "${CMAKE_CXX_COMPILER}" ] ; then
shift
fi
export CCACHE_CPP2=true
exec "${CXX_LAUNCHER}" "${CMAKE_CXX_COMPILER}" "$@"