Files
macports-ports/graphics/libfive/files/patch-remove-march-native.diff
Szabolcs HorvátandRenee Otten a99e669752 libfive: update to 20241103
- 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
2024-11-06 08:55:55 -05:00

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()