From cf5e9a538abf19f7aafcdb7e65a81d3c1cd5058b Mon Sep 17 00:00:00 2001 From: Yinan Xu Date: Mon, 10 Jul 2023 17:37:02 +0800 Subject: [PATCH] configs: disable LTO for ref configs Link-time optimizations may not work with clang sanitizer. --- configs/riscv64-nutshell-ref_defconfig | 2 +- configs/riscv64-xs-ref_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/riscv64-nutshell-ref_defconfig b/configs/riscv64-nutshell-ref_defconfig index f5ab80a23..a4a172222 100644 --- a/configs/riscv64-nutshell-ref_defconfig +++ b/configs/riscv64-nutshell-ref_defconfig @@ -49,7 +49,7 @@ CONFIG_CC="gcc" CONFIG_CC_O2=y # CONFIG_CC_O3 is not set CONFIG_CC_OPT="-O2" -CONFIG_CC_LTO=y +# CONFIG_CC_LTO is not set # CONFIG_CC_DEBUG is not set # CONFIG_CC_ASAN is not set # end of Build Options diff --git a/configs/riscv64-xs-ref_defconfig b/configs/riscv64-xs-ref_defconfig index 8e8cb624d..64eae0e5a 100644 --- a/configs/riscv64-xs-ref_defconfig +++ b/configs/riscv64-xs-ref_defconfig @@ -51,7 +51,7 @@ CONFIG_CC="gcc" CONFIG_CC_O2=y # CONFIG_CC_O3 is not set CONFIG_CC_OPT="-O2" -CONFIG_CC_LTO=y +# CONFIG_CC_LTO is not set # CONFIG_CC_DEBUG is not set # CONFIG_CC_ASAN is not set # end of Build Options