]> git.baikalelectronics.ru Git - kernel.git/commit
Makefile: Remove '--gcc-toolchain' flag
authorNathan Chancellor <nathan@kernel.org>
Tue, 9 Mar 2021 20:59:14 +0000 (13:59 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 24 Apr 2021 20:12:55 +0000 (05:12 +0900)
commit8f86363ff41765c099cc79cff618f600a52f8795
treef224f619bf3ce567c28ed5db8b24c9829825aeee
parent6d4aa8e7a96ab0495844262cbd00ee2d10bae82f
Makefile: Remove '--gcc-toolchain' flag

This flag was originally added to allow clang to find the GNU cross
tools in commit 996c0f141e2e ("kbuild: Add better clang cross build
support"). This flag was not enough to find the tools at times so
'--prefix' was added to the list in commit 7e35e59c8e5d ("kbuild: allow
to use GCC toolchain not in Clang search path") and improved upon in
commit 6771445cc308 ("Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang
cross compilation"). Now that '--prefix' specifies a full path and
prefix, '--gcc-toolchain' serves no purpose because the kernel builds
with '-nostdinc' and '-nostdlib'.

This has been verified with self compiled LLVM 10.0.1 and LLVM 13.0.0 as
well as a distribution version of LLVM 11.1.0 without binutils in the
LLVM toolchain locations.

Link: https://reviews.llvm.org/D97902
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Fangrui Song <maskray@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile