Skip to content

Commit

Permalink
math/libdivide: fix build on armv6/armv7
Browse files Browse the repository at this point in the history
The NEON code included in this library is for arm64 only.
Disable use of NEON on armv6/armv7.

See <ridiculousfish/libdivide#102>.

PR:		265870
Reported by:	fuz (at) fuz.su

(cherry picked from commit fbab55b)
  • Loading branch information
clausecker authored and thierry-FreeBSD committed Aug 27, 2022
1 parent 69218c3 commit 9b27d49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions math/libdivide/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ GH_ACCOUNT= ridiculousfish
USES= cmake compiler:c++11-lang
NO_ARCH= yes

# NEON support requires arm64
CMAKE_OFF_armv6= LIBDIVIDE_NEON
CMAKE_OFF_armv7= LIBDIVIDE_NEON
CMAKE_OFF= ${CMAKE_OFF_${ARCH}}

PLIST_FILES= include/libdivide.h \
lib/cmake/libdivide/libdivideConfig.cmake \
lib/cmake/libdivide/libdivideConfigVersion.cmake
Expand Down

0 comments on commit 9b27d49

Please sign in to comment.