未验证 提交 847311bd 编写于 作者: Y Yuan Shuai 提交者: GitHub

[LITE][COMPILE] Fix clang compile slow for arm cpu and abnormal exit for...

[LITE][COMPILE] Fix clang compile slow for arm cpu and abnormal exit for opencl. test=develop (#3763)

* [LITE][COMPILE] Fix clang compile slow for arm cpu and abnormal exit for opencl. test=develop

* add note for compilation option. test=develop
上级 3c1d9817
......@@ -71,6 +71,12 @@ if (LITE_ON_TINY_PUBLISH)
check_linker_flag(-Wl,--gc-sections)
endif()
if(ARM_TARGET_LANG STREQUAL "clang")
# note(ysh329): fix slow compilation for arm cpu,
# and abnormal exit compilation for opencl due to lots of warning
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override -Wno-return-type")
endif()
if(LITE_WITH_OPENMP)
find_package(OpenMP REQUIRED)
if(OPENMP_FOUND OR OpenMP_CXX_FOUND)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册