testing/haxe: rebuild and fix for ocaml 4.06.1

This commit is contained in:
Jakub Jirutka 2018-03-10 02:12:38 +01:00
parent c4e0da5578
commit 9a786cf40c

View File

@ -3,7 +3,7 @@
pkgname=haxe
pkgver=3.4.7
_versuffix=
pkgrel=0
pkgrel=1
pkgdesc="Cross-platform toolkit and programming language"
url="https://haxe.org"
arch="x86_64 aarch64 ppc64le"
@ -30,9 +30,14 @@ build() {
mv "$srcdir"/haxelib-$_haxelib_rev extra/haxelib_src
mv "$srcdir"/ocamllibs-$_ocamllibs_rev libs
# Workaround to make it build with ocaml >=4.06.
export OCAMLPARAM="safe-string=0,_"
# Check to see if ocamlopt exists. If not, bytecompile everything.
command -v ocamlopt && make -j1 || make -j1 BYTECODE=1
make -j1 tools
unset OCAMLPARAM
}
check() {