Commit 7100a2cc authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

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



Similar to how we do it for gcc.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 779c9699
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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