Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/embree/PKGBUILD
blob: 522a34826937199755fd99a94bd4444da3d00d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# avoid breakage in newer CPU ISAs, supporting SSE2 should be enough for
# 32-bit platforms
# for special use cases (like running Archlinux32 on 64-bit hardware)
# we can support up to SSE4.2 (everything above is too hard to fix).
# As Embree chooses the ISA at runtime, this is no problem for machines
# not having SSE4.2
eval "$(
  declare -f build | \
    sed '
      /cmake/s/-DEMBREE_MAX_ISA="AVX512SKX"/-DEMBREE_MAX_ISA="SSE4.2"/
    '
)"

# some 32-bit fixes around intrinsics where applied to WIN32 only,
# applying a counter-patch here
source+=('embree-3.2.0-intrinsic.patch')
sha256sums+=('7d5e44a034b02e14d7d37cd038d8c279d13d66b54a449c09e0687458f117723f')
eval "$(
  {
    declare -f prepare || \
    printf 'prepare() {\n}\n'
  } \
  | sed '
    $i cd "$srcdir/$pkgname-$pkgver" \
       patch -Np1 -i "$srcdir/embree-3.2.0-intrinsic.patch"
  '
)"