]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Support Solaris stupid /bin/sh in pch test
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 22 Aug 2010 15:25:17 +0000 (17:25 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 22 Aug 2010 15:25:17 +0000 (17:25 +0200)
test.sh

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