diff options
author | Tim Deegan <Tim.Deegan@citrix.com> | 2011-03-07 11:21:11 +0000 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@citrix.com> | 2011-03-07 11:21:11 +0000 |
commit | 436323c065f0ace4f469f5854f43423702a5082a (patch) | |
tree | a93c7f16cc6371a524eedcd7c642848f0d244f66 /xen/Rules.mk | |
parent | cde9655eddba4d6636249863e41b2bb5103ba2ee (diff) | |
download | xen-436323c065f0ace4f469f5854f43423702a5082a.tar.gz xen-436323c065f0ace4f469f5854f43423702a5082a.tar.bz2 xen-436323c065f0ace4f469f5854f43423702a5082a.zip |
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 <Tim.Deegan@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r-- | xen/Rules.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk index d3348144c0..59d0dc7c31 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -62,6 +62,9 @@ endif AFLAGS-y += -D__ASSEMBLY__ +# Clang's built-in assembler can't handle .code16/.code32/.code64 yet +AFLAGS-$(clang) += -no-integrated-as + ALL_OBJS := $(ALL_OBJS-y) # Get gcc to generate the dependencies for us. |