提交 18ddd6bc 编写于 作者: L lingyunli63

fix illegal instruction

上级 dc8ff8e5
...@@ -109,7 +109,7 @@ if(NOT SUPPORT_CXX11) ...@@ -109,7 +109,7 @@ if(NOT SUPPORT_CXX11)
endif() endif()
check_cxx_compiler_flag("-march=native" NATIVE_BUILD) check_cxx_compiler_flag("-march=native" NATIVE_BUILD)
if(NATIVE_BUILD) if(NATIVE_BUILD AND ENABLE_NATIVE_BUILD)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
endif() endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册