summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xacprep12
1 files changed, 9 insertions, 3 deletions
diff --git a/acprep b/acprep
index 44b4d41a..2fe9c9eb 100755
--- a/acprep
+++ b/acprep
@@ -209,9 +209,15 @@ while [ -n "$1" ]; do
# g++ 4.0.1 cannot use PCH headers on OS X 10.5, so we must use a
# newer version. However, it also means I can't use GLIBCXX_DEBUG.
if [ -f /usr/bin/g++-4.2 ]; then
- CC=/usr/bin/gcc-4.2
- CXX=/usr/bin/g++-4.2
- LD=/usr/bin/g++-4.2
+ if [ -f /opt/local/bin/ccache ]; then
+ CC="ccache /usr/bin/gcc-4.2"
+ CXX="ccache /usr/bin/g++-4.2"
+ LD="ccache /usr/bin/g++-4.2"
+ else
+ CC=/usr/bin/gcc-4.2
+ CXX=/usr/bin/g++-4.2
+ LD=/usr/bin/g++-4.2
+ fi
fi
shift 1 ;;