diff --git a/tools/build/mk/los_config.mk b/tools/build/mk/los_config.mk index 5fc43ce784463f7b4cab6f588b12ff085d4b1bc8..a489709063cbe00c769e150a859f9fee39b25911 100644 --- a/tools/build/mk/los_config.mk +++ b/tools/build/mk/los_config.mk @@ -455,14 +455,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