aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@043a8217-7a68-40fe-abfd-36aa7d4fa6a8>2012-11-14 02:41:02 +0000
committereschnett <eschnett@043a8217-7a68-40fe-abfd-36aa7d4fa6a8>2012-11-14 02:41:02 +0000
commitfc1197d127e834f015a65321758b6f3e3ad6bd93 (patch)
treed5d8f8c304571fc66c5240f21b3064fb2779f6c2
parenta6fdc369eb3817a59685e964602407241efad4a2 (diff)
Disable ccache when building OpenMPI
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/MPI/trunk@14 043a8217-7a68-40fe-abfd-36aa7d4fa6a8
-rw-r--r--configure.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.sh b/configure.sh
index f6381c8..b2cfdb4 100644
--- a/configure.sh
+++ b/configure.sh
@@ -110,6 +110,12 @@ then
cd ${SCRATCH_BUILD}
# Set up environment
+ # Disable ccache: remove "ccache" and all options that follow
+ # Note: we can use only basic sed regexps here
+ export CC=$(echo '' ${CC} '' |
+ sed -e 's/ ccache *\(-[^ ]* *\)*/ /g;s/^ //;s/ $//')
+ export CXX=$(echo '' ${CXX} '' |
+ sed -e 's/ ccache *\(-[^ ]* *\)*/ /g;s/^ //;s/ $//')
if [ "${F90}" = "none" ]; then
echo 'BEGIN MESSAGE'
echo 'No Fortran 90 compiler available. Building MPI library without Fortran support.'