diff options
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index c561dd8a78..4d7a17a6b5 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -122,6 +122,15 @@ def inferClang(PATH): config.clang = inferClang(config.environment['PATH']) if not lit.quiet: lit.note('using clang: %r' % config.clang) -config.substitutions.append( (' clang ', ' ' + config.clang + ' ') ) config.substitutions.append( ('%clang_cc1', config.clang + ' -cc1') ) - +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-cc ', + """*** Do not use 'clang-cc' in tests, use '%clang_cc1'. ***""") ) +config.substitutions.append( + (' clang -cc1 ', + """*** Do not use 'clang -cc1' in tests, use '%clang_cc1'. ***""") ) |