llvm6.0: fix cross

[ci skip]
This commit is contained in:
Rasmus Thomsen 2018-12-27 12:12:47 +01:00 committed by maxice8
parent 29bd1ac0bc
commit e0a69694b9

View file

@ -19,7 +19,6 @@ homepage="https://www.llvm.org"
license="NCSA"
distfiles="https://www.llvm.org/releases/${version}/llvm-${version}.src.tar.xz"
checksum=b6d6c324f9c71494c0ccaf3dac1f16236d970002b42bb24a6c9e1634f7d0f4e2
nocross="make: *** tools/clang/utils/TableGen: No such file or directory. Stop."
# XXX Investigate ocaml bindings.
hostmakedepends="groff perl python zlib-devel libffi-devel swig"
@ -52,9 +51,7 @@ pre_configure() {
CXXFLAGS="$BUILD_CXXFLAGS" LDFLAGS="$BUILD_LDFLAGS" \
cmake ../.. -DCMAKE_BUILD_TYPE=Release
make ${makejobs} -C utils/TableGen
make ${makejobs} -C tools/clang/utils/TableGen
configure_args+=" -DLLVM_TABLEGEN=${wrksrc}/build/HOST/bin/llvm-tblgen"
configure_args+=" -DCLANG_TABLEGEN=${wrksrc}/build/HOST/bin/clang-tblgen"
cd ../..
fi