mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 00:42:58 +02:00
llvm8: disable lldb for ppc64 and ppc
[ci skip]
This commit is contained in:
parent
7706ec7e1e
commit
f7bdb85a58
1 changed files with 14 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue