summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-16 03:16:12 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-16 03:16:12 -0400
commit1aeb5e5997084d4e1507be9c57d05eb26f5384ff (patch)
treeed73c3e7abb44045e2434533ad8d6261fba08b81
parentb5a972d1a0b12bb55f16af9f57166a779823bc7f (diff)
downloadledger-1aeb5e5997084d4e1507be9c57d05eb26f5384ff.tar.gz
ledger-1aeb5e5997084d4e1507be9c57d05eb26f5384ff.tar.bz2
ledger-1aeb5e5997084d4e1507be9c57d05eb26f5384ff.zip
acprep now uses ccache for --devel if available
-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 ;;