提交 949a4553 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!94 fix illegal instruction

Merge pull request !94 from lingyunli63/fix_illegal_instruction
......@@ -109,7 +109,7 @@ if(NOT SUPPORT_CXX11)
endif()
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_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册