diff options
-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 ;; |