From c9aad4ff4f9f37a2d8685db4b1ce310452f41e89 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 7 Mar 2016 11:22:00 +0100 Subject: [PATCH] Only enable ccache if it's available MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Emilia Käsper --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dff2f94978..ac8d81295d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,7 +64,9 @@ before_script: srcdir=../_srcdir; mkdir _build; cd _build; - CC="ccache $CC"; + if which ccache >/dev/null; then + CC="ccache $CC"; + fi else srcdir=.; cd _srcdist; -- 2.25.1