Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages /
embree
Commits:
cc6f6245 by Yichao Yu at 2025-08-16T19:35:27-04:00
Support building on non-x86 archs
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -14,9 +14,22 @@ makedepends=('cmake' 'ispc' 'freeglut' 'libxmu' 'ninja')
source=(https://github.com/embree/embree/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('acb517b0ea0f4b442235d5331b69f96192c28da6aca5d5dde0cbe40799638d5c')
+# Embree detects actual ISA at runtime but we have to set a high maximum
+# buildtime version as it would otherwise default to the builder processor.
+case "$CARCH" in
+ i*86|x86_64*)
+ _MAX_ISA=AVX512SKX
+ ;;
+ arm*|aarch64)
+ _MAX_ISA=NEON2X
+ ;;
+ *)
+ # Upstream currently doesn't have any support for non-arm/x86
+ _MAX_ISA=NONE
+ ;;
+esac
+
build() {
- # Embree detects actual ISA at runtime but we have to set a high maximum
- # buildtime version as it would otherwise default to the builder processor.
cmake \
-B build \
-G Ninja \
@@ -25,7 +38,7 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DEMBREE_ISPC_SUPPORT=ON \
-DEMBREE_TUTORIALS=OFF \
- -DEMBREE_MAX_ISA="AVX512SKX" \
+ -DEMBREE_MAX_ISA="${_MAX_ISA}" \
-DEMBREE_BACKFACE_CULLING=OFF
ninja -C build
# Maybe enable these later once they are out of beta:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/embree/-/commit/cc6f6245a77a25659a8565718b304d9656e5bc38
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/embree/-/commit/cc6f6245a77a25659a8565718b304d9656e5bc38
You're receiving this email because of your account on gitlab.archlinux.org.