diff --git a/srcpkgs/llvm8/template b/srcpkgs/llvm8/template index 0af2af6b9f9..f8377dacf93 100644 --- a/srcpkgs/llvm8/template +++ b/srcpkgs/llvm8/template @@ -35,8 +35,19 @@ checksum="8872be1b12c61450cacc82b3d153eab02be2546ef34fa3580ed14137bb26224c disable_parallel_builds=yes lib32disabled=yes +_lldb_enable=yes + +if [ "$CROSS_BUILD" ]; then + _lldb_enable=no +fi + +case "$XBPS_TARGET_MACHINE" in + ppc64le*) ;; + ppc*) _lldb_enable=no ;; +esac + subpackages="clang-tools-extra clang clang-analyzer libllvm8" -if [ -z "$CROSS_BUILD" ]; then +if [ "$_lldb_enable" = "yes" ]; then # XXX fails to cross compile due to python subpackages+=" lldb lldb-devel" fi @@ -60,7 +71,7 @@ post_patch() { patch -sNp1 -i ${i} done - if [ -z "$CROSS_BUILD" ]; then + if [ "$_lldb_enable" = "yes" ]; then cd ${XBPS_BUILDDIR}/lldb-${version}.src for i in ${FILESDIR}/patches/lldb/*.patch; do msg_normal "Applying $i to lldb\n" @@ -84,7 +95,7 @@ post_patch() { mv ${XBPS_BUILDDIR}/lld-${version}.src ${wrksrc}/tools/lld fi # Move lldb files into the llvm source. - if [ -z "$CROSS_BUILD" -a -d ${XBPS_BUILDDIR}/lldb-${version}.src ]; then + if [ "$_lldb_enable" = "yes" -a -d ${XBPS_BUILDDIR}/lldb-${version}.src ]; then mv ${XBPS_BUILDDIR}/lldb-${version}.src ${wrksrc}/tools/lldb fi # Move compiler-rt files into the llvm source.