提交 413e0230 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !261 from SimonLi/fix-lto
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册