Skip to content

Commit

Permalink
Merge pull request #3602 from uklotzde/arm-build
Browse files Browse the repository at this point in the history
Fix ARM build issues
  • Loading branch information
daschuer authored Jan 26, 2021
2 parents fc0b4c9 + e846a7a commit 06c8be4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ 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 STREQUAL "arm")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv7.*)$") # but not armv8
add_compile_options(
-mflat-abi=hard
-mfloat-abi=hard
-mfpu=neon
)
endif()
Expand All @@ -224,7 +224,7 @@ elseif(GNU_GCC OR LLVM_CLANG)
# Note: requires gcc >= 4.2.0
# macros like __SSE2_MATH__ __SSE_MATH__ __SSE2__ __SSE__
# are set automatically
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv7.*)$") # but not armv8
add_compile_options(
-mfloat-abi=hard
-mfpu=neon
Expand Down

0 comments on commit 06c8be4

Please sign in to comment.