ports/devel/xeus/files/patch-CMakeLists.txt
Mark Linimon 2b1038a1c9 Remove the -mtune=generic/-march=native fiddling on all archs, not just
GCC-based ones.

This will unbreak the build on aarch64.

Approved by:	portmgr (tier-2 blanket)
2019-11-10 04:59:34 +00:00

15 lines
639 B
Text

--- CMakeLists.txt.orig 2019-05-24 14:55:26 UTC
+++ CMakeLists.txt
@@ -212,12 +212,6 @@ macro(xeus_create_target target_name lin
target_compile_options(${target_name} PUBLIC -Wunused-parameter -Wextra -Wreorder)
- if (DISABLE_ARCH_NATIVE)
- target_compile_options(${target_name} PUBLIC -mtune=generic)
- else ()
- target_compile_options(${target_name} PUBLIC -march=native)
- endif ()
-
# Enable link time optimization and set the default symbol
# visibility to hidden (very important to obtain small binaries)
if (NOT ${U_CMAKE_BUILD_TYPE} MATCHES DEBUG)