[PATCH] make: allow to change a compiler
Andrey Vagin
avagin at openvz.org
Thu Jun 20 17:59:32 EDT 2013
clang-analyzer sets the environment variable CC
scan-build -plist-html --use-analyzer /usr/bin/clang make
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Cc: Chanho Park <chanho61.park at samsung.com>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e002c11..3888ced 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,11 @@ FIND := find
CSCOPE := cscope
RM := rm -f
LD := $(CROSS_COMPILE)ld
-CC := $(CROSS_COMPILE)gcc
+
+# clang-analyzer sets the environment variable CC
+CC ?= $(CROSS_COMPILE)gcc
+export CC
+
NM := $(CROSS_COMPILE)nm
SH := bash
MAKE := make
--
1.8.2.1
--YiEDa0DAkWCtVeE4--
More information about the CRIU
mailing list