commit | 4b4dc5c2fdfec7a776dc828e7ad2af6721274a07 | [log] [tgz] |
---|---|---|
author | Adrian Ratiu <adrian.ratiu@collabora.com> | Fri Nov 26 17:10:36 2021 +0200 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 07 11:52:36 2022 +0000 |
tree | 4ab89067284b35769754e355ad41083c036f758d | |
parent | 771b261f7924dff313962d9d929c2669596d8f7e [diff] |
kernel-2.eclass: Respect portage toolchain variables This backports the following commit from Gentoo upstream: https://github.com/gentoo/gentoo/commit/55f5c68c01e791c7339144aadc1f20802791551e Starting with kernel>=v5.7 the build system can override the tools vars by setting LLVM=1 [1], but older kernels still use the default GNU tools, so to be able to use a full LLVM/Clang build, CC & co should be set to their respective portage values. [1] a0d1c951ef08 kbuild: support LLVM=1 to switch the default tools to Clang/LLVM BUG=b:193847062 TEST=Local builds on x64 & arm; CQ. Change-Id: Ie99ae59fc9686f45cbf2f52249510e780fe61b33 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/portage-stable/+/3367255 Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: Adrian Ratiu <adrian.ratiu@collabora.corp-partner.google.com> Commit-Queue: Adrian Ratiu <adrian.ratiu@collabora.corp-partner.google.com>