From: Joel Rosdahl Date: Sat, 27 Jan 2018 14:26:15 +0000 (+0100) Subject: test: Fix failure in gcc pch suite when using compiler with options X-Git-Tag: v3.4~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=958c4c26fb2ae3e318a4c850f82ef7035e970fe8;p=thirdparty%2Fccache.git test: Fix failure in gcc pch suite when using compiler with options Need to remember any extra compiler options in REAL_COMPILER as well. --- diff --git a/test.sh b/test.sh index 6fb7ad854..af5692047 100755 --- a/test.sh +++ b/test.sh @@ -3565,7 +3565,11 @@ upgrade input_charset " -REAL_COMPILER=$(find_compiler $COMPILER) +compiler_bin=$(echo $COMPILER | awk '{print $1}') +compiler_args=$(echo $COMPILER | awk '{$1 = ""; print}') +real_compiler_bin=$(find_compiler $compiler_bin) +REAL_COMPILER="$real_compiler_bin$compiler_args" + if [ "$REAL_COMPILER" = "$COMPILER" ]; then echo "Compiler: $COMPILER" else