aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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