diff options
Diffstat (limited to 'gnu/packages/graphics.scm')
| -rw-r--r-- | gnu/packages/graphics.scm | 14 |
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/") |
