aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-05 22:24:46 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-05 22:38:55 +0200
commit396eb82cd185d7c76fb301e1db85558d2099471b (patch)
tree175e81ce881fc8d4aa6ff0ddbdb30e7bf6f05370 /testing
parent2c74b8922ae093ae48980a14656006a0e361585b (diff)
downloadaports-396eb82cd185d7c76fb301e1db85558d2099471b.tar.bz2
aports-396eb82cd185d7c76fb301e1db85558d2099471b.tar.xz
testing/ponyc: build with clang instead of gcc
gcc 6.4.0 doesn't support flag -mcx16 which ponyc needs on aarch64.
Diffstat (limited to 'testing')
-rw-r--r--testing/ponyc/APKBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/testing/ponyc/APKBUILD b/testing/ponyc/APKBUILD
index c7fd54cc72..a591ee1154 100644
--- a/testing/ponyc/APKBUILD
+++ b/testing/ponyc/APKBUILD
@@ -2,15 +2,16 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ponyc
pkgver=0.21.3
-pkgrel=1
+pkgrel=2
pkgdesc="An open-source, actor-model, capabilities-secure, high performance programming language"
url="https://www.ponylang.org"
arch="x86_64 aarch64"
license="BSD-2-Clause"
_llvmver=3.9
-depends="binutils-gold gcc"
+depends="binutils-gold clang"
checkdepends="libressl-dev pcre2-dev"
-makedepends="libexecinfo-dev llvm$_llvmver-dev ncurses-dev paxmark zlib-dev"
+makedepends="clang-dev libexecinfo-dev libunwind-dev llvm$_llvmver-dev
+ ncurses-dev paxmark zlib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ponylang/$pkgname/archive/$pkgver.tar.gz
disable-avx512f-for-x86-only.patch
@@ -34,6 +35,10 @@ _make_opts="arch=$_arch
LLVM_CONFIG=/usr/lib/llvm$_llvmver/bin/llvm-config
"
+# gcc 6.4.0 doesn't support flag -mcx16 which ponyc needs on aarch64.
+export CC=clang
+export CXX=clang++
+
build() {
cd "$builddir"