[Lunar-commits] <moonbase-core> ccache: enable ccache default
Stefan Wold
ratler at lunar-linux.org
Sun Nov 24 19:00:09 CET 2013
commit b97e2a2252a4ebd6977071b3ba8086149071011e
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 23 Nov 2013 12:21:02 -0800
URL: https://github.com/lunar-linux/moonbase-core/commit/b97e2a2252a4ebd6977071b3ba8086149071011e
ccache: enable ccache default
---
utils/ccache/plugin.d/optimize-ccache.plugin | +4/-2
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/utils/ccache/plugin.d/optimize-ccache.plugin
+++ b/utils/ccache/plugin.d/optimize-ccache.plugin
@@ -9,7 +9,7 @@ plugin_ccache_optimize()
. /etc/lunar/local/optimizations.CCACHE
fi
- if [ "$USE_CCACHE" == "yes" ]; then
+ if [ "${USE_CCACHE:-yes}" == "yes" ]; then
# we PRE-pend ccache in case distcc is also used to make sure that ccache goes first!
echo $CC_EXT | grep -q "ccache" || CC_EXT="ccache $CC_EXT"
echo $CXX_EXT | grep -q "ccache" || CXX_EXT="ccache $CXX_EXT"
@@ -40,6 +40,8 @@ plugin_ccache_optimize_menu()
# load previous optimizations
if [ -e /etc/lunar/local/optimizations.CCACHE ]; then
. /etc/lunar/local/optimizations.CCACHE
+ else
+ USE_CCACHE="yes"
fi
save_optimizations()
@@ -58,7 +60,7 @@ EOF
if [ $? != 0 ]; then
break
else
- if [ "$USE_CCACHE" == 'yes' ]; then
+ if [ "$USE_CCACHE" == "yes" ]; then
USE_CCACHE=no
else
USE_CCACHE=yes
More information about the Lunar-commits
mailing list