提交 7797f017 编写于 作者: Z Zbigniew Bodek

Disable LTO only for Qemu ARM build

Keep flag enabled for HiSi cameras whereas
LTO will be disabled for Qemu as a workaround.
Signed-off-by: NZbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Iad7295d108dfea0928537281f87eb46836ee6681
上级 58da2cb0
...@@ -463,10 +463,14 @@ ifeq ($(LOSCFG_COMPILE_DEBUG), y) ...@@ -463,10 +463,14 @@ ifeq ($(LOSCFG_COMPILE_DEBUG), y)
LITEOS_COPTS_OPTION = -g -gdwarf-2 LITEOS_COPTS_OPTION = -g -gdwarf-2
else else
ifeq ($(LOSCFG_COMPILER_CLANG_LLVM), y) ifeq ($(LOSCFG_COMPILER_CLANG_LLVM), y)
ifeq ($(LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7), y)
# WORKAROUND: Disable LTO to avoid undefined __stack_chk_guard # WORKAROUND: Disable LTO to avoid undefined __stack_chk_guard
# problem. "externally_visible" attribute could be # problem. "externally_visible" attribute could be
# a fix for that but it is not known to our LLVM. # a fix for that but it is not known to our LLVM.
LITEOS_COPTS_OPTMIZE = -Oz #-flto LITEOS_COPTS_OPTMIZE = -Oz #-flto
else
LITEOS_COPTS_OPTMIZE = -Oz -flto
endif
else else
LITEOS_COPTS_OPTMIZE = -O2 LITEOS_COPTS_OPTMIZE = -O2
endif endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册