Skip to content
Snippets Groups Projects
Commit 10c62b85 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #1254: Disabled setting of -march=native, because it breaks binary...

Task #1254: Disabled setting of -march=native, because it breaks binary compatibility between CEP-I and CEP-II hardware.
parent 05aabfc0
No related branches found
No related tags found
No related merge requests found
...@@ -12,12 +12,13 @@ CHECK_CXX_COMPILER_FLAG("-march=native" COMPILER_SUPPORTS_MARCH_NATIVE) ...@@ -12,12 +12,13 @@ CHECK_CXX_COMPILER_FLAG("-march=native" COMPILER_SUPPORTS_MARCH_NATIVE)
# -march=native speeds up the flagger with about 6% - 7%, but is not supported prior gcc 4.2. # -march=native speeds up the flagger with about 6% - 7%, but is not supported prior gcc 4.2.
# Hence, only enable it if it is supported. # Hence, only enable it if it is supported.
if(COMPILER_SUPPORTS_MARCH_NATIVE) # Disabled setting of -march=native, because it breaks binary compatibility between CEP-I and CEP-II hardware.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") #if(COMPILER_SUPPORTS_MARCH_NATIVE)
else() # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
message(STATUS " CXX compiler does not support -march=native : your code will not be optimized with -march=native.") #else()
message(STATUS " This probably means your gcc is old ( < 4.2).") # message(STATUS " CXX compiler does not support -march=native : your code will not be optimized with -march=native.")
endif(COMPILER_SUPPORTS_MARCH_NATIVE) # message(STATUS " This probably means your gcc is old ( < 4.2).")
#endif(COMPILER_SUPPORTS_MARCH_NATIVE)
include(CheckIncludeFileCXX) include(CheckIncludeFileCXX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment