From: Joel Rosdahl Date: Sun, 25 Sep 2016 09:37:41 +0000 (+0200) Subject: test: Handle CC="gcc -std=gnu99" gracefully X-Git-Tag: v3.3.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7988efc06a8cefdec02913f7b75e6e199df9cee4;p=thirdparty%2Fccache.git test: Handle CC="gcc -std=gnu99" gracefully Based on a suggestion by Eric Bavier. --- diff --git a/test.sh b/test.sh index 6ca18c9bf..b46feaad3 100755 --- a/test.sh +++ b/test.sh @@ -3380,11 +3380,11 @@ upgrade input_charset " -compiler_location=$(which $COMPILER) +compiler_location=$(which $(echo "$COMPILER" | awk '{print $1}')) if [ "$compiler_location" = "$COMPILER" ]; then echo "Compiler: $COMPILER" else - echo "Compiler: $COMPILER ($(which $COMPILER))" + echo "Compiler: $COMPILER ($compiler_location)" fi echo "Compiler version: $($COMPILER --version | head -n 1)" echo