lineage: config: Make LLVM kernel compile the default
* GCC was deprecated awhile ago, the large majority of devices should now be using this. Clang should be opt out as opposed to opt in. Change-Id: Ie388aff8eca189663f2f615f7d059e47eaf2dce3
This commit is contained in:
committed by
Nebrassy
parent
7a23f9e986
commit
ea442ffb45
@@ -30,7 +30,7 @@
|
||||
# aarch64-linux-android- for arm64
|
||||
# x86_64-linux-android- for x86
|
||||
#
|
||||
# TARGET_KERNEL_CLANG_COMPILE = Compile kernel with clang, defaults to false
|
||||
# TARGET_KERNEL_CLANG_COMPILE = Compile kernel with clang, defaults to true
|
||||
#
|
||||
# KERNEL_TOOLCHAIN_PREFIX = Overrides TARGET_KERNEL_CROSS_COMPILE_PREFIX,
|
||||
# Set this var in shell to override
|
||||
@@ -96,7 +96,7 @@ ifneq ($(USE_CCACHE),)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_KERNEL_CLANG_COMPILE),true)
|
||||
ifneq ($(TARGET_KERNEL_CLANG_COMPILE),false)
|
||||
KERNEL_CROSS_COMPILE := CROSS_COMPILE="$(KERNEL_TOOLCHAIN_PATH)"
|
||||
else
|
||||
KERNEL_CROSS_COMPILE := CROSS_COMPILE="$(CCACHE_BIN) $(KERNEL_TOOLCHAIN_PATH)"
|
||||
|
||||
Reference in New Issue
Block a user