Skip to content

Commit dbe27a0

Browse files
committed
kbuild: add -no-integrated-as Clang option unconditionally
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>
1 parent ccda4af commit dbe27a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ CLANG_GCC_TC := --gcc-toolchain=$(GCC_TOOLCHAIN)
497497
endif
498498
KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX)
499499
KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX)
500-
KBUILD_CFLAGS += $(call cc-option, -no-integrated-as)
501-
KBUILD_AFLAGS += $(call cc-option, -no-integrated-as)
500+
KBUILD_CFLAGS += -no-integrated-as
501+
KBUILD_AFLAGS += -no-integrated-as
502502
endif
503503

504504
RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register

0 commit comments

Comments
 (0)