aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJan-Simon Möller <dl9pf@gmx.de>2012-11-20 21:21:12 +0100
committerBehan Webster <behanw@converseincode.com>2014-03-31 00:07:17 -0700
commit18334eebd7ead9b5cb0df4a7d68d8faa2077040d (patch)
tree8b257814fd8d8b8ae8d9ec24f77dee1e94a375e5 /Makefile
parent24447ae381b1ebc29aa0c141cd1b4e39b12618d4 (diff)
Kbuild: LLVMLinux: Disable the use of the Integrated Assembler when compiling with Clang
Globally disable the use of the Clang Integrated Assembler (IA). Use gas instead. IA doesn't support the gas assembly extensions used in the kernel code. Author: Mark Charlebois <charlebm@gmail.com> Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 67e0ba35c73..ea878ca91e2 100644
--- a/Makefile
+++ b/Makefile
@@ -395,10 +395,11 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
+ $(call cc-option,-no-integrated-as,) \
$(call cc-option,-fno-delete-null-pointer-checks,)
KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
-KBUILD_AFLAGS := -D__ASSEMBLY__
+KBUILD_AFLAGS := -D__ASSEMBLY__ $(call cc-option,-no-integrated-as,)
KBUILD_AFLAGS_MODULE := -DMODULE
KBUILD_CFLAGS_MODULE := -DMODULE
KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds