From 6ca7b28e60afdc72d888b4c96fff509568ee3bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Fri, 30 Jun 2017 12:49:47 -0700 Subject: [build] add ccache + Circle CI caching --- scripts/launch-c.in | 10 ++++++++++ scripts/launch-cxx.in | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 scripts/launch-c.in create mode 100644 scripts/launch-cxx.in (limited to 'scripts') diff --git a/scripts/launch-c.in b/scripts/launch-c.in new file mode 100644 index 0000000000..6c6c9180bc --- /dev/null +++ b/scripts/launch-c.in @@ -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}" "$@" diff --git a/scripts/launch-cxx.in b/scripts/launch-cxx.in new file mode 100644 index 0000000000..23f107ce48 --- /dev/null +++ b/scripts/launch-cxx.in @@ -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}" "$@" \ No newline at end of file -- cgit v1.2.1