summaryrefslogtreecommitdiff
path: root/community/clingo/PKGBUILD
blob: 362b9ad9b349d8e61789730899df41b4c746c334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# clang++ misses some C++ atomic stubs in the C++ library on 32-bit,
# g++ compiles and links fine
# also reported upstream: https://github.com/potassco/clingo/issues/57

# cmake
makedepends=(${makedepends[@]/clang})

# must be patched after cmake has run, hence it is in build
eval "$(
  declare -f build | \
    sed '
	  s/-DCMAKE_CXX_COMPILER=clang++/-DCMAKE_CXX_COMPILER=g++/
      /^\s*ninja\s*/i  sed -i s/clang++/g++/g ${srcdir}/build/rules.ninja
    '
)"