]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Also check if the -fpch-preprocess option is supported for pch tests
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 22 Aug 2010 15:26:04 +0000 (17:26 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 22 Aug 2010 15:26:04 +0000 (17:26 +0200)
test.sh

diff --git a/test.sh b/test.sh
index da45e6e7256cecd59d6ff1168a012c280a9c33de..68879f200d335f65fcceeccbe01e9e495bbf78a1 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1604,7 +1604,7 @@ EOF
     cat <<EOF >pch.h
 #include <stdlib.h>
 EOF
-    if $COMPILER pch.h 2>/dev/null; then
+    if $COMPILER -fpch-preprocess pch.h 2>/dev/null; then
         :
     else
         return