summaryrefslogtreecommitdiffstats
path: root/clang/test/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/lit.cfg')
-rw-r--r--clang/test/lit.cfg7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg
index 65b07749c29..2b494c49109 100644
--- a/clang/test/lit.cfg
+++ b/clang/test/lit.cfg
@@ -253,12 +253,14 @@ def makeMSABITriple(triple):
if os == 'win32':
# If the OS is win32, we're done.
return triple
- if isa.startswith('x86') or isa == 'amd64' or re.match(r'i\d86', isa):
+ if isa.startswith('x86') or isa == 'amd64' or re.match(r'i\d86', isa):
# For x86 ISAs, adjust the OS.
return isa + '-' + vendor + '-win32'
# -win32 is not supported for non-x86 targets; use a default.
return 'i686-pc-win32'
+config.substitutions.append( ('%clang_analyze_cc1',
+ '%clang_cc1 -analyze %analyze') )
config.substitutions.append( ('%clang_cc1',
'%s -cc1 -internal-isystem %s -nostdsysteminc'
% (config.clang,
@@ -291,6 +293,9 @@ config.substitutions.append(
(' clang-cc ',
"""*** Do not use 'clang-cc' in tests, use '%clang_cc1'. ***""") )
config.substitutions.append(
+ (' clang -cc1 -analyze ',
+ """*** Do not use 'clang -cc1 -analyze' in tests, use '%clang_analyze_cc1'. ***""") )
+config.substitutions.append(
(' clang -cc1 ',
"""*** Do not use 'clang -cc1' in tests, use '%clang_cc1'. ***""") )
config.substitutions.append(
OpenPOWER on IntegriCloud