summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-11-06 12:04:54 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-27 10:07:02 +0100
commitc95a870d1cdeda811c9ba4a16c16c4d1e2baa701 (patch)
tree203faedb3547146bacf3fb0dc6c70b30f7dfbf9e
parente1e7f343ea57be71cf6b57caae43e123033ee1e5 (diff)
downloadlinux-stable-c95a870d1cdeda811c9ba4a16c16c4d1e2baa701.tar.gz
linux-stable-c95a870d1cdeda811c9ba4a16c16c4d1e2baa701.tar.bz2
linux-stable-c95a870d1cdeda811c9ba4a16c16c4d1e2baa701.zip
kbuild: add -no-integrated-as Clang option unconditionally
commit dbe27a002ef8573168cb64e181458ea23a74e2b6 upstream. We are still a way off the Clang's integrated assembler support for the kernel. Hence, -no-integrated-as is mandatory to build the kernel with Clang. If you had an ancient version of Clang that does not recognize this option, you would not be able to compile the kernel anyway. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 893325dec526..37ddfaeb25f1 100644
--- a/Makefile
+++ b/Makefile
@@ -516,8 +516,8 @@ CLANG_GCC_TC := --gcc-toolchain=$(GCC_TOOLCHAIN)
endif
KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX)
KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX)
-KBUILD_CFLAGS += $(call cc-option, -no-integrated-as)
-KBUILD_AFLAGS += $(call cc-option, -no-integrated-as)
+KBUILD_CFLAGS += -no-integrated-as
+KBUILD_AFLAGS += -no-integrated-as
endif