未验证 提交 2b40367c 编写于 作者: H hong19860320 提交者: GitHub

[Core] Fix the exceptions handling for android+armv8+gcc (#4285)

上级 1e74d147
......@@ -70,6 +70,10 @@ else()
set(TARGET_COMIPILE_FLAGS "-fdata-sections")
if (NOT (ARM_TARGET_LANG STREQUAL "clang")) #gcc
set(TARGET_COMIPILE_FLAGS "${TARGET_COMIPILE_FLAGS} -flto")
# TODO (hong19860320): Disable lto temporarily since it causes fail to catch the exceptions in android when toolchain is gcc.
if (ARM_TARGET_OS STREQUAL "android" AND LITE_WITH_EXCEPTION)
set(TARGET_COMIPILE_FLAGS "")
endif()
endif()
set_target_properties(paddle_light_api_shared PROPERTIES COMPILE_FLAGS "${TARGET_COMIPILE_FLAGS}")
add_dependencies(paddle_light_api_shared op_list_h kernel_list_h fbs_headers)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册