From 29c137d8a068eba776c4eb26eb97339493ea7ecb Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 30 May 2009 02:40:23 +0000 Subject: More intelligence svn path=/trunk/tools/buildsystem/; revision=7651 --- makefiles/Makefile.top | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'makefiles/Makefile.top') 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) -- cgit v1.2.3