[PATCH 6/6] llvm: A few Makefile hacks
Anton Blanchard
anton at samba.org
Tue May 26 08:53:30 AEST 2015
llvm accepts -fno-delete-null-pointer-checks but complains about it.
Wrap it to avoid getting enormous numbers of warnings.
Also add -no-integrated-as to disable the llvm integrated assembler,
lots of stuff currently relies on gas.
---
Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Makefile b/Makefile
index eae539d..451290f 100644
--- a/Makefile
+++ b/Makefile
@@ -609,7 +609,12 @@ all: vmlinux
include arch/$(SRCARCH)/Makefile
+ifneq ($(COMPILER),clang)
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
+endif
+
+KBUILD_CFLAGS += $(call cc-option,-no-integrated-as,)
+KBUILD_AFLAGS += $(call cc-option,-no-integrated-as,)
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
--
2.1.4
More information about the Linuxppc-dev
mailing list