1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
From: Peter Micheal Green <plugwash@debian.org>
Date: Fri, 10 Jan 2020 22:31:36 +0100
Subject: remove_inappropriate_arm_flags
---
CMakeLists.txt | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb15ea8..bd1df49 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -503,11 +503,11 @@ elseif(GNU_GCC OR LLVM_CLANG)
# TODO(rryan): macOS can use SSE3, and possibly SSE 4.1 once
# we require macOS 10.12.
# https://stackoverflow.com/questions/45917280/mac-osx-minumum-support-sse-version
- elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv7.*)$") # but not armv8
- add_compile_options(
- -mfloat-abi=hard
- -mfpu=neon
- )
+ #elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv7.*)$") # but not armv8
+ # add_compile_options(
+ # -mfloat-abi=hard
+ # -mfpu=neon
+ # )
endif()
# this sets macros __SSE2_MATH__ __SSE_MATH__ __SSE2__ __SSE__
# This should be our default build for distribution
@@ -527,10 +527,10 @@ elseif(GNU_GCC OR LLVM_CLANG)
# macros like __SSE2_MATH__ __SSE_MATH__ __SSE2__ __SSE__
# are set automatically
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv7.*)$") # but not armv8
- add_compile_options(
- -mfloat-abi=hard
- -mfpu=neon
- )
+ # add_compile_options(
+ # -mfloat-abi=hard
+ # -mfpu=neon
+ # )
endif()
elseif(OPTIMIZE STREQUAL "legacy")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(i[3456]86|x86|x64|x86_64|AMD64)$")
|