summaryrefslogtreecommitdiffstats
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-02-17 20:31:01 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-02-17 20:31:01 +0000
commit679d6054072b04adac3eeb9508546e2485ad059f (patch)
tree29fcb86a1685685dff9b6a51b20e73bd02e59d4b /test/lit.cfg
parent0b63ba4d4642467529afbddc227a06979b6080fb (diff)
tests: Add '%clangxx' substitution, for 'clang++'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 4d7a17a6b5..5b18687158 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -123,12 +123,15 @@ 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'. ***""") )
config.substitutions.append(