summaryrefslogtreecommitdiff
path: root/makefiles/Makefile.top
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-30 02:40:23 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-30 02:40:23 +0000
commit29c137d8a068eba776c4eb26eb97339493ea7ecb (patch)
tree52f54482b71822b1b292b41a7cb2c2432cbaff8e /makefiles/Makefile.top
parentdb16fcee4cbc5bd469b1c2b6c9a554f9c3a42f2b (diff)
downloadbuildsystem-29c137d8a068eba776c4eb26eb97339493ea7ecb.tar.gz
buildsystem-29c137d8a068eba776c4eb26eb97339493ea7ecb.tar.bz2
More intelligence
svn path=/trunk/tools/buildsystem/; revision=7651
Diffstat (limited to 'makefiles/Makefile.top')
-rw-r--r--makefiles/Makefile.top9
1 files changed, 6 insertions, 3 deletions
diff --git a/makefiles/Makefile.top b/makefiles/Makefile.top
index fcb80dd..539447b 100644
--- a/makefiles/Makefile.top
+++ b/makefiles/Makefile.top
@@ -155,9 +155,12 @@ SOURCES :=
# If we're performing static analysis, then override CC
ifeq ($(MAKECMDGOALS),scan)
- # Need this in the environment
- export CCC_CC := $(CC)
- CC := build/llvm/ccc-analyzer
+ # Only if it's not already ccc-analyzer
+ ifeq ($(findstring ccc-analyzer,$(CC)),ccc-analyzer)
+ # Need this in the environment
+ export CCC_CC := $(CC)
+ CC := build/llvm/ccc-analyzer
+ endif
endif
# Set the default target (before including any children)