[libcxx] r284225 - Work around Clang driver segfault when --coverage is used with -c and /dev/null

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 03:30:33 PDT 2016


Author: ericwf
Date: Fri Oct 14 05:30:33 2016
New Revision: 284225

URL: http://llvm.org/viewvc/llvm-project?rev=284225&view=rev
Log:
Work around Clang driver segfault when --coverage is used with -c and /dev/null

Modified:
    libcxx/trunk/test/libcxx/compiler.py

Modified: libcxx/trunk/test/libcxx/compiler.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/compiler.py?rev=284225&r1=284224&r2=284225&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/compiler.py (original)
+++ libcxx/trunk/test/libcxx/compiler.py Fri Oct 14 05:30:33 2016
@@ -188,7 +188,7 @@ class CXXCompiler(object):
         # Add -Werror to ensure that an unrecognized flag causes a non-zero
         # exit code. -Werror is supported on all known compiler types.
         if self.type is not None:
-            flags += ['-Werror']
+            flags += ['-Werror', '-fsyntax-only']
         cmd, out, err, rc = self.compile(os.devnull, out=os.devnull,
                                          flags=flags)
         return rc == 0




More information about the cfe-commits mailing list