summaryrefslogtreecommitdiff
path: root/extra/clang/PKGBUILD
blob: b68e60b3d9f9bf250d2e526a9bf49990696b3c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# FAIL: clang-tidy/abseil-duration-factory-scale.cpp
# see https://bugs.llvm.org/show_bug.cgi?id=41460
# => for now run checks, but make failure non-fatal..
eval "$(
  declare -f check | \
    sed '
      s/\(ninja.*\)/\1 || true/
    '
)"

# clang tests in clang-tidy hang build slaves due to
# races in the python tests, disabled them all for now
# as we cannot disable them individually..
if [ "$CARCH" = 'i486' ]; then
  unset check
fi

# LTO fails on i486
if [ "$CARCH" = 'i486' ]; then
  sed -i '
    1i options=(!lto)
  ' PKGBUILD
fi