[llvm] r372682 - [lit] Add -D__clang_analyzer__ to clang_analyze_cc1
Jan Korous via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 18:59:21 PDT 2019
Author: jkorous
Date: Mon Sep 23 18:59:20 2019
New Revision: 372682
URL: http://llvm.org/viewvc/llvm-project?rev=372682&view=rev
Log:
[lit] Add -D__clang_analyzer__ to clang_analyze_cc1
Fixup after fbd13570b0d
Modified:
llvm/trunk/utils/lit/lit/llvm/config.py
Modified: llvm/trunk/utils/lit/lit/llvm/config.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/llvm/config.py?rev=372682&r1=372681&r2=372682&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/llvm/config.py (original)
+++ llvm/trunk/utils/lit/lit/llvm/config.py Mon Sep 23 18:59:20 2019
@@ -404,7 +404,7 @@ class LLVMConfig(object):
builtin_include_dir = self.get_clang_builtin_include_dir(self.config.clang)
tool_substitutions = [
ToolSubst('%clang', command=self.config.clang, extra_args=additional_flags),
- ToolSubst('%clang_analyze_cc1', command='%clang_cc1', extra_args=['-analyze', '%analyze']+additional_flags),
+ ToolSubst('%clang_analyze_cc1', command='%clang_cc1', extra_args=['-analyze', '%analyze', '-D__clang_analyzer__']+additional_flags),
ToolSubst('%clang_cc1', command=self.config.clang, extra_args=['-cc1', '-internal-isystem', builtin_include_dir, '-nostdsysteminc']+additional_flags),
ToolSubst('%clang_cpp', command=self.config.clang, extra_args=['--driver-mode=cpp']+additional_flags),
ToolSubst('%clang_cl', command=self.config.clang, extra_args=['--driver-mode=cl']+additional_flags),
More information about the llvm-commits
mailing list