fix(build): clang10.0.1支持lto,去掉冗余判断

This commit is contained in:
SimonLi 2021-05-21 11:21:19 +08:00
parent 9b364500ad
commit 73223ae7e6
1 changed files with 1 additions and 8 deletions

View File

@ -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