[CRIU] [PATCH] make: allow to change a compiler

Andrey Vagin avagin at openvz.org
Thu Jun 20 18:02:57 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 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e002c11..009ae77 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,10 @@ 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
+
 NM		:= $(CROSS_COMPILE)nm
 SH		:= bash
 MAKE		:= make
-- 
1.8.2.1



More information about the CRIU mailing list