Skip to content

Commit

Permalink
Remove -march=native
Browse files Browse the repository at this point in the history
It breaks cross-compilation: acado#248
  • Loading branch information
dawagner committed Jan 26, 2018
1 parent 19c430b commit 33f10ce
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmake/CompilerOptions.cmake
Expand Up @@ -89,11 +89,6 @@ IF ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU"
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual" )
ENDIF()

IF (NOT (APPLE AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") AND (NOT MINGW))
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native")
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -march=native")
ENDIF()

IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-comparison -Dregister=''" )
ENDIF()
Expand Down

0 comments on commit 33f10ce

Please sign in to comment.