aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2012-05-27 20:43:09 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2012-05-27 20:43:09 +1000
commit431cb00684cbdc2b2946fae0c90be04919dc47bc (patch)
tree6e48f4078b12c3b1bb61412dbed8bc569c69346c
parentdab7ac8e629b33210eeef32223097c109260160f (diff)
downloadscintilla-mirror-431cb00684cbdc2b2946fae0c90be04919dc47bc.tar.gz
Add a way to run the clang static analyzer by defining CLANG_ANALYZE to make.
-rw-r--r--gtk/makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/makefile b/gtk/makefile
index 4483205c1..9921fae36 100644
--- a/gtk/makefile
+++ b/gtk/makefile
@@ -8,8 +8,11 @@
.SUFFIXES: .cxx .c .o .h .a
ifdef CLANG
-CC = clang
-CCOMP = clang
+ifdef CLANG_ANALYZE
+ANALYZE=--analyze
+endif
+CC = clang $(ANALYZE)
+CCOMP = clang $(ANALYZE)
else
CC = g++
CCOMP = gcc