diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-04-08 03:36:22 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-04-08 20:18:09 +0200 |
commit | 7e20e47c70f810d678d02941fa3c671209c4ca97 (patch) | |
tree | b3b9f8270783a25ae04761643b84055f527f9948 /Makefile | |
parent | kbuild: add dummy toolchains to enable all cc-option etc. in Kconfig (diff) | |
download | linux-7e20e47c70f810d678d02941fa3c671209c4ca97.tar.xz linux-7e20e47c70f810d678d02941fa3c671209c4ca97.zip |
kbuild: replace AS=clang with LLVM_IAS=1
The 'AS' variable is unused for building the kernel. Only the remaining
usage is to turn on the integrated assembler. A boolean flag is a better
fit for this purpose.
AS=clang was added for experts. So, I replaced it with LLVM_IAS=1,
breaking the backward compatibility.
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -538,7 +538,7 @@ endif ifneq ($(GCC_TOOLCHAIN),) CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN) endif -ifeq ($(if $(AS),$(shell $(AS) --version 2>&1 | head -n 1 | grep clang)),) +ifneq ($(LLVM_IAS),1) CLANG_FLAGS += -no-integrated-as endif CLANG_FLAGS += -Werror=unknown-warning-option |