From 73223ae7e652b7cd9f1e1848c32b2b2573d07b2a Mon Sep 17 00:00:00 2001 From: SimonLi Date: Fri, 21 May 2021 11:21:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20clang10.0.1=E6=94=AF=E6=8C=81lto?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E6=8E=89=E5=86=97=E4=BD=99=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/build/mk/los_config.mk | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/build/mk/los_config.mk b/tools/build/mk/los_config.mk index 91cf344e..708324ed 100644 --- a/tools/build/mk/los_config.mk +++ b/tools/build/mk/los_config.mk @@ -450,14 +450,7 @@ ifeq ($(LOSCFG_COMPILE_DEBUG), y) LITEOS_COPTS_OPTION = -g -gdwarf-2 else ifeq ($(LOSCFG_COMPILER_CLANG_LLVM), y) - ifeq ($(LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7), y) - # WORKAROUND: Disable LTO to avoid undefined __stack_chk_guard - # problem. "externally_visible" attribute could be - # a fix for that but it is not known to our LLVM. - LITEOS_COPTS_OPTMIZE = -Oz #-flto - else - LITEOS_COPTS_OPTMIZE = -Oz -flto - endif + LITEOS_COPTS_OPTMIZE = -Oz -flto else LITEOS_COPTS_OPTMIZE = -O2 endif