diff options
Diffstat (limited to 'makefiles/Makefile.top')
-rw-r--r-- | makefiles/Makefile.top | 9 |
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) |