test/lit.cfg: bash is available on MSYS.

llvm-svn: 127080
This commit is contained in:
NAKAMURA Takumi 2011-03-05 11:16:06 +00:00
parent 7249bbcbc9
commit 70f5be634a
1 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,8 @@ if platform.system() == 'Windows':
#
# For now we require '&&' between commands, until they get globally killed and
# the test runner updated.
execute_external = platform.system() != 'Windows'
execute_external = (platform.system() != 'Windows'
or lit.getBashPath() not in [None, ""])
config.test_format = lit.formats.ShTest(execute_external)
# suffixes: A list of file extensions to treat as test files.
@ -137,7 +138,7 @@ def inferClang(PATH):
if lit.useValgrind:
config.target_triple += '-vg'
config.clang = inferClang(config.environment['PATH'])
config.clang = inferClang(config.environment['PATH']).replace('\\', '/')
if not lit.quiet:
lit.note('using clang: %r' % config.clang)
config.substitutions.append( ('%clang_cc1', config.clang + ' -cc1') )