From 5effb5078986100b2651306a35a7e77d4207fd2a Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Tue, 24 Jan 2017 14:51:42 +0100
Subject: [PATCH] Disables use of ccache for the time being

---
 gitlab/functions.sh | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index 16db75f..2caa1f4 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -182,24 +182,24 @@ prepare_build_env() {
   source $1/bin/activate $2
 
   # Configures CCACHE
-  use_ccache=`which ccache`
-  if [ -z "${use_ccache}" ]; then
-    log_warn "Cannot find ccache, compiling from scratch..."
-  else
-    local ccache_bin=$2/lib/ccache
-    if [ ! -d ${ccache_bin} ]; then
-      run_cmd mkdir -pv ${ccache_bin}
-      ln -sf ${use_ccache} ${ccache_bin}/gcc
-      ln -sf ${use_ccache} ${ccache_bin}/g++
-      ln -sf ${use_ccache} ${ccache_bin}/cc
-      ln -sf ${use_ccache} ${ccache_bin}/c++
-    fi
-    use_gcc=`which gcc`
-    #PATH=${ccache_bin}:${PATH}
-    #export_env PATH
-    #log_info "ccache installed at ${use_ccache}, caching compilations..."
-    log_info "gcc installed at ${use_gcc}..."
-  fi
+  # use_ccache=`which ccache`
+  # if [ -z "${use_ccache}" ]; then
+  #   log_warn "Cannot find ccache, compiling from scratch..."
+  # else
+  #   local ccache_bin=$2/lib/ccache
+  #   if [ ! -d ${ccache_bin} ]; then
+  #     run_cmd mkdir -pv ${ccache_bin}
+  #     ln -sf ${use_ccache} ${ccache_bin}/gcc
+  #     ln -sf ${use_ccache} ${ccache_bin}/g++
+  #     ln -sf ${use_ccache} ${ccache_bin}/cc
+  #     ln -sf ${use_ccache} ${ccache_bin}/c++
+  #   fi
+  #   use_gcc=`which gcc`
+  #   PATH=${ccache_bin}:${PATH}
+  #   export_env PATH
+  #   log_info "ccache installed at ${use_ccache}, caching compilations..."
+  #   log_info "gcc installed at ${use_gcc}..."
+  # fi
 }
 
 
-- 
GitLab