diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-16 03:16:12 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-16 03:16:12 -0400 |
commit | 1aeb5e5997084d4e1507be9c57d05eb26f5384ff (patch) | |
tree | ed73c3e7abb44045e2434533ad8d6261fba08b81 | |
parent | b5a972d1a0b12bb55f16af9f57166a779823bc7f (diff) | |
download | ledger-1aeb5e5997084d4e1507be9c57d05eb26f5384ff.tar.gz ledger-1aeb5e5997084d4e1507be9c57d05eb26f5384ff.tar.bz2 ledger-1aeb5e5997084d4e1507be9c57d05eb26f5384ff.zip |
acprep now uses ccache for --devel if available
-rwxr-xr-x | acprep | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 ;; |