diff --git a/Makefile b/Makefile index 9493115055f0..fa89f8cbd674 100755 --- a/Makefile +++ b/Makefile @@ -796,6 +796,7 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) # Use make W=1 to enable them (see scripts/Makefile.extrawarn) KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) + ifeq ($(ld-name),lld) LDFLAGS += -O2 endif diff --git a/arch/arm64/configs/vendor/lineage-a52q_defconfig b/arch/arm64/configs/vendor/lineage-a52q_defconfig index 352beec99b62..f3aefa241040 100755 --- a/arch/arm64/configs/vendor/lineage-a52q_defconfig +++ b/arch/arm64/configs/vendor/lineage-a52q_defconfig @@ -6154,7 +6154,7 @@ CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # # Compile-time checks and compiler options # -CONFIG_DEBUG_INFO=y +# CONFIG_DEBUG_INFO is not set # CONFIG_DEBUG_INFO_REDUCED is not set # CONFIG_DEBUG_INFO_SPLIT is not set # CONFIG_DEBUG_INFO_DWARF4 is not set diff --git a/arch/arm64/configs/vendor/lineage-a72q_defconfig b/arch/arm64/configs/vendor/lineage-a72q_defconfig index c24410020e9d..78ee21dc8ac3 100644 --- a/arch/arm64/configs/vendor/lineage-a72q_defconfig +++ b/arch/arm64/configs/vendor/lineage-a72q_defconfig @@ -6151,7 +6151,7 @@ CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # # Compile-time checks and compiler options # -CONFIG_DEBUG_INFO=y +# CONFIG_DEBUG_INFO is not set # CONFIG_DEBUG_INFO_REDUCED is not set # CONFIG_DEBUG_INFO_SPLIT is not set # CONFIG_DEBUG_INFO_DWARF4 is not set