mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
- Fixes build on recent macOS at the cost of breaking it on 10.14 and earlier - Use Guile 3.0 - Add support for recent Python versions - Use Python 3.12 by default Closes https://trac.macports.org/ticket/63664
17 lines
593 B
Diff
17 lines
593 B
Diff
Do not use the -match=native flag.
|
|
--- CMakeLists.txt
|
|
+++ CMakeLists.txt
|
|
@@ -57,12 +57,6 @@ endif()
|
|
if(NOT MSVC)
|
|
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()
|
|
-
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-O0")
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DEIGEN_NO_DEBUG")
|
|
else()
|