diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2016-09-25 11:37:41 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2016-09-25 11:37:41 +0200 |
commit | 7988efc06a8cefdec02913f7b75e6e199df9cee4 (patch) | |
tree | e677abdffe936d12aaa8e3969d7f3a0f1d38ac64 | |
parent | 98d4e17737337af503b34417a56a16d0ab7d3c19 (diff) | |
download | ccache-7988efc06a8cefdec02913f7b75e6e199df9cee4.tar.gz |
test: Handle CC="gcc -std=gnu99" gracefully
Based on a suggestion by Eric Bavier.
-rwxr-xr-x | test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |