PKGBUILDs/extra/openal/openal-soft-arm_neon-only-for-32bit.patch

12 lines
502 B
Diff
Raw Normal View History

2018-09-11 13:54:11 +00:00
--- CMakeLists.txt.orig 2018-09-11 07:50:54.763206560 -0600
+++ CMakeLists.txt 2018-09-11 07:51:56.040874745 -0600
@@ -945,7 +945,7 @@
2015-07-15 13:16:29 +00:00
# Check for ARM Neon support
OPTION(ALSOFT_REQUIRE_NEON "Require ARM Neon support" OFF)
2018-09-11 13:54:11 +00:00
CHECK_INCLUDE_FILE(arm_neon.h HAVE_ARM_NEON_H ${FPU_NEON_SWITCH})
2015-07-15 13:16:29 +00:00
-IF(HAVE_ARM_NEON_H)
2018-09-11 13:54:11 +00:00
+IF(HAVE_ARM_NEON_H AND CMAKE_SIZEOF_VOID_P EQUAL 4) # only 32-bit ARM
2015-07-15 13:16:29 +00:00
OPTION(ALSOFT_CPUEXT_NEON "Enable ARM Neon support" ON)
IF(ALSOFT_CPUEXT_NEON)
SET(HAVE_NEON 1)