[libc++] Get rid of pipe in command to check whether verify is supported

This commit is contained in:
Louis Dionne 2020-04-24 15:29:42 -04:00
parent 0e13a0331f
commit 4fd92cc475
1 changed files with 1 additions and 1 deletions

View File

@ -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')