From: Joel Rosdahl Date: Sat, 23 Jul 2016 18:17:14 +0000 (+0200) Subject: Make test suite work with CC="gcc -std=gnu99" X-Git-Tag: v3.3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1be74015e3970d4679beab8b8beb808bde6ff4c6;p=thirdparty%2Fccache.git Make test suite work with CC="gcc -std=gnu99" --- diff --git a/test.sh b/test.sh index bf9bff8a8..cc77312f5 100755 --- a/test.sh +++ b/test.sh @@ -578,6 +578,7 @@ EOF "$@" [ x$2 = x-fcolor-diagnostics ] && shift [ x$2 = x-fdiagnostics-color ] && shift +[ x$2 = x-std=gnu99 ] && shift [ x$3 = x-o ] && rm $4 EOF chmod +x prefix-remove.sh @@ -593,6 +594,7 @@ EOF "$@" [ x$2 = x-fcolor-diagnostics ] && shift [ x$2 = x-fdiagnostics-color ] && shift +[ x$2 = x-std=gnu99 ] && shift [ x$3 = x-o ] && cp /dev/null $4 EOF chmod +x prefix-empty.sh @@ -783,13 +785,15 @@ base_suite() { } link_suite() { - if [ `dirname $COMPILER` = . ]; then - ln -s "$CCACHE" $COMPILER - CCACHE_COMPILE="./$COMPILER" + compiler_binary=`echo $COMPILER | cut -d' ' -f1` + compiler_args=`echo $COMPILER | cut -d' ' -f2-` + if [ `dirname $compiler_binary` = . ]; then + ln -s "$CCACHE" $compiler_binary + CCACHE_COMPILE="./$compiler_binary $compiler_args" base_tests - rm -f $COMPILER + rm -f $compiler_binary else - echo "Compiler ($COMPILER) not taken from PATH -- not running link test" + echo "Compiler ($compiler_binary) not taken from PATH -- not running link test" fi }