tests: Add '%clangxx' substitution, for 'clang++'

llvm-svn: 96510
This commit is contained in:
Daniel Dunbar 2010-02-17 20:31:01 +00:00
parent b7941b0703
commit 78c974fcba
1 changed files with 3 additions and 0 deletions

View File

@ -123,11 +123,14 @@ config.clang = inferClang(config.environment['PATH'])
if not lit.quiet:
lit.note('using clang: %r' % config.clang)
config.substitutions.append( ('%clang_cc1', config.clang + ' -cc1') )
config.substitutions.append( ('%clangxx', ' ' + config.clang + '++ ') )
config.substitutions.append( ('%clang', ' ' + config.clang + ' ') )
# FIXME: Find nicer way to prohibit this.
config.substitutions.append(
(' clang ', """*** Do not use 'clang' in tests, use '%clang'. ***""") )
config.substitutions.append(
(' clang++ ', """*** Do not use 'clang++' in tests, use '%clangxx'. ***"""))
config.substitutions.append(
(' clang-cc ',
"""*** Do not use 'clang-cc' in tests, use '%clang_cc1'. ***""") )