Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 2e99bca2a84cd7bbab1c24bb855e8713 > files > 1

openshadinglanguage1.11-1.11.17.0-10.mga9.src.rpm

From ffd69a46bb49b33012a007ac21ba969a0fcb8b6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jani=20V=C3=A4limaa?= <wally@mageia.org>
Date: Sun, 1 Jan 2023 16:16:15 +0200
Subject: [PATCH] Allow building without ARM NEON support

---
 CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9201dd9..a1cbce2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -123,6 +123,11 @@ if (OIIO_FMATH_SIMD_FRIENDLY)
     add_definitions (-DOIIO_FMATH_SIMD_FRIENDLY=1)
 endif ()
 
+option (OSL_OIIO_NO_NEON "Make sure ARM NEON support is disabled" OFF)
+if (OSL_OIIO_NO_NEON)
+    add_definitions ("-DOIIO_NO_NEON=1")
+endif()
+
 if (USE_OPTIX)
     add_definitions ("-DOSL_USE_OPTIX=1")
 endif ()
-- 
2.39.0