forked from OSchip/llvm-project
Work around Clang driver segfault when --coverage is used with -c and /dev/null
llvm-svn: 284225
This commit is contained in:
parent
67624af0cc
commit
68696836d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue