From cf7adf3954d271e047cc3fbb736de676a3278a1a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 6 May 2026 11:01:07 +0300 Subject: gnu: embree: Adjust configure-flags. * gnu/packages/graphics.scm (embree)[arguments]: Adjust the configure-flags to be appropriate per-architecture. Change-Id: I03eaa53802198fcea012c68a68e7490d61101757 --- gnu/packages/graphics.scm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index ff3a9fb3fd..68a49ef916 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -628,9 +628,17 @@ with the @command{autotrace} utility or as a C library, @code{libautotrace}.") #:configure-flags (list "-DEMBREE_ISPC_SUPPORT=OFF" - ;; They SAY that that's the default--but it isn't - ;; (that would be AVX512--and that segfaults GCC (!)). - "-DEMBREE_MAX_ISA=AVX2"))) + ,@(cond + ((target-x86-64?) + ;; They SAY that that's the default--but it isn't + ;; (that would be AVX512--and that segfaults GCC (!)). + `("-DEMBREE_MAX_ISA=AVX2")) + ((target-aarch64?) + `("-DEMBREE_ARM=ON" + "-DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF" + "-DCMAKE_CXX_FLAGS=-flax-vector-conversions")) + (else + '()))))) (inputs (list glfw onetbb)) (home-page "https://www.embree.org/") -- cgit v1.3