Files

17 lines
593 B
Diff
Raw Permalink Normal View History

2024-11-03 19:44:34 +00:00
Do not use the -match=native flag.
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -57,12 +57,6 @@ endif()
2021-04-25 20:04:35 +02:00
if(NOT MSVC)
2024-11-03 19:44:34 +00:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra ${LIBFIVE_DEBUGGING}-fPIC -pedantic -Werror=switch")
- # Sometimes this flag is not supported (e.g. on Apple Silicon)
- check_cxx_compiler_flag("-march=native" MARCH_SUPPORTED)
- if(MARCH_SUPPORTED)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
- endif()
-
2021-04-25 20:04:35 +02:00
set(CMAKE_CXX_FLAGS_DEBUG "-O0")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DEIGEN_NO_DEBUG")
else()