瀏覽代碼

dependencies.sh: fix host g++ check when ccache is used

Similar to how we do it for gcc.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 13 年之前
父節點
當前提交
7100a2cc33
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      toolchain/dependencies/dependencies.sh

+ 1 - 1
toolchain/dependencies/dependencies.sh

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