dependencies.sh: fix host g++ check when ccache is used
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 8 Feb 2012 22:40:20 +0000 (23:40 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 8 Feb 2012 22:40:20 +0000 (23:40 +0100)
Similar to how we do it for gcc.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/dependencies/dependencies.sh

index 2b9c0b373cfd053ba4d419e34643fcdf9cc37142..c47ffcf43cc319bfe7caf1c0e6b2a0e359d2a1dd 100755 (executable)
@@ -101,7 +101,7 @@ if [ $COMPILER_MAJOR -lt 3 -o $COMPILER_MAJOR -eq 2 -a $COMPILER_MINOR -lt 95 ]
 fi;
 
 # check for host CXX
-CXXCOMPILER=$(which $HOSTCXX 2> /dev/null)
+CXXCOMPILER=$(which $HOSTCXX_NOCCACHE 2> /dev/null)
 if [ -z "$CXXCOMPILER" ] ; then
        CXXCOMPILER=$(which c++ 2> /dev/null)
 fi