mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-15 03:35:46 +00:00
Add work on compiler flags
This commit is contained in:
parent
8bfc0b8085
commit
c92e0cb5c0
@ -2525,7 +2525,13 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
|||||||
if(OS_IS_MACOSX)
|
if(OS_IS_MACOSX)
|
||||||
add_compile_options(-march=corei7 -mfpmath=sse)
|
add_compile_options(-march=corei7 -mfpmath=sse)
|
||||||
else()
|
else()
|
||||||
if(NOT IS_ARM)
|
if(IS_ARM)
|
||||||
|
# ARM-specific options
|
||||||
|
# See https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
|
||||||
|
if(NOT CMAKE_CROSSCOMPILING)
|
||||||
|
add_compile_options(-mcpu=native)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
add_compile_options(-march=native -mfpmath=sse)
|
add_compile_options(-march=native -mfpmath=sse)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user