forked from OSchip/llvm-project
[libc++] Get rid of pipe in command to check whether verify is supported
This commit is contained in:
parent
0e13a0331f
commit
4fd92cc475
|
@ -149,7 +149,7 @@ class CxxStandardLibraryTest(lit.formats.TestFormat):
|
|||
|
||||
# Determine whether clang-verify is supported.
|
||||
def _supportsVerify(self, test):
|
||||
command = "echo | %{cxx} -xc++ - -Werror -fsyntax-only -Xclang -verify-ignore-unexpected"
|
||||
command = "%{{cxx}} -xc++ {} -Werror -fsyntax-only -Xclang -verify-ignore-unexpected".format(os.devnull)
|
||||
command = lit.TestRunner.applySubstitutions([command], test.config.substitutions,
|
||||
recursion_limit=test.config.recursiveExpansionLimit)[0]
|
||||
devNull = open(os.devnull, 'w')
|
||||
|
|
Loading…
Reference in New Issue