From: Joel Rosdahl Date: Mon, 23 Aug 2010 05:56:52 +0000 (+0200) Subject: test: Check that compiler is actually able to use precompiled headers X-Git-Tag: v3.1~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f780612d9216388d681dc608214fb6e22d6b54c;p=thirdparty%2Fccache.git test: Check that compiler is actually able to use precompiled headers --- diff --git a/test.sh b/test.sh index 94d5cf8a1..a860da7cf 100755 --- a/test.sh +++ b/test.sh @@ -1604,10 +1604,10 @@ EOF cat <pch.h #include EOF - if $COMPILER -fpch-preprocess pch.h 2>/dev/null; then + if $COMPILER -fpch-preprocess pch.h 2>/dev/null && [ -f pch.h.gch ] && $COMPILER pch.c -o pch; then : else - echo "Compiler ($COMPILER) doesn't support precompiled headers -- not running pch test" + echo "Compiler (`$COMPILER --version | head -1`) doesn't support precompiled headers -- not running pch test" return fi