From 436323c065f0ace4f469f5854f43423702a5082a Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Mon, 7 Mar 2011 11:21:11 +0000 Subject: xen: add "clang=y" option to build Xen with clang/llvm instead of gcc. Tested with svn snapshot of clang and llvm from 17 February 2011. Only x86_64 hypervisor builds (make dist-xen clang=y) are supported and I haven't even begun to look at cross-compiling. Signed-off-by: Tim Deegan Acked-by: Keir Fraser --- xen/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xen/Makefile') diff --git a/xen/Makefile b/xen/Makefile index 8b04f8b107..64f73cb64c 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -88,7 +88,7 @@ include/xen/compile.h: include/xen/compile.h.in .banner -e 's/@@whoami@@/$(XEN_WHOAMI)/g' \ -e 's/@@domain@@/$(XEN_DOMAIN)/g' \ -e 's/@@hostname@@/$(shell hostname)/g' \ - -e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -1)!g' \ + -e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) -v 2>&1 | grep version | tail -1)!g' \ -e 's/@@version@@/$(XEN_VERSION)/g' \ -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ -- cgit v1.2.3