summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2026-05-06 11:01:07 +0300
committerEfraim Flashner <efraim@flashner.co.il>2026-05-11 10:50:26 +0300
commitcf7adf3954d271e047cc3fbb736de676a3278a1a (patch)
tree01dea0be5049b101c6247875f5f789038dac72fd
parent892a857130991122653d80172055c30b8d988ec2 (diff)
gnu: embree: Adjust configure-flags.
* gnu/packages/graphics.scm (embree)[arguments]: Adjust the configure-flags to be appropriate per-architecture. Change-Id: I03eaa53802198fcea012c68a68e7490d61101757
-rw-r--r--gnu/packages/graphics.scm14
1 files 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/")