Commit 8d9fbaab authored by Monty's avatar Monty

Fixed that ccache can be used again (broken by TokuDB patches)

For now, only if ccache is installed with symlinks in /usr/lib64/ccache
parent deef90eb
...@@ -256,6 +256,10 @@ fi ...@@ -256,6 +256,10 @@ fi
# (http://samba.org/ccache) is installed, use it. # (http://samba.org/ccache) is installed, use it.
# We use 'grep' and hope 'grep' will work as expected # We use 'grep' and hope 'grep' will work as expected
# (returns 0 if finds lines) # (returns 0 if finds lines)
# As cmake doesn't like CC and CXX with a space, use symlinks from
# /usr/lib64/ccache if they exits.
if test "$USING_GCOV" != "1" if test "$USING_GCOV" != "1"
then then
# Not using gcov; Safe to use ccache # Not using gcov; Safe to use ccache
...@@ -264,8 +268,14 @@ fi ...@@ -264,8 +268,14 @@ fi
if ccache -V > /dev/null 2>&1 && test "$CCACHE_GCOV_VERSION_ENABLED" = "1" if ccache -V > /dev/null 2>&1 && test "$CCACHE_GCOV_VERSION_ENABLED" = "1"
then then
echo "$CC" | grep "ccache" > /dev/null || CC="ccache $CC" if test -x /usr/lib64/ccache/gcc
echo "$CXX" | grep "ccache" > /dev/null || CXX="ccache $CXX" then
CC=/usr/lib64/ccache/gcc
fi
if test -x /usr/lib64/ccache/g++
then
CXX=/usr/lib64/ccache/g++
fi
fi fi
# gcov # gcov
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment