llvm: fix applying lldb patches.

This commit is contained in:
Leah Neukirchen 2017-06-25 19:03:16 +02:00
parent ad5490e5e1
commit 171ed29f27

View file

@ -63,14 +63,16 @@ post_extract() {
patch -sNp1 -i ${i} patch -sNp1 -i ${i}
done done
cd ${XBPS_BUILDDIR}/lldb-${version}.src if [ -z "$CROSS_BUILD" ]; then
for i in ${FILESDIR}/patches/lldb/*.patch; do cd ${XBPS_BUILDDIR}/lldb-${version}.src
msg_normal "Applying $i to lldb\n" for i in ${FILESDIR}/patches/lldb/*.patch; do
patch -sNp1 -i ${i} msg_normal "Applying $i to lldb\n"
done patch -sNp1 -i ${i}
case "$XBPS_TARGET_MACHINE" in done
*-musl) sed -i 's|__ptrace_request|int|g' source/Plugins/Process/Linux/NativeProcessLinux.cpp ;; case "$XBPS_TARGET_MACHINE" in
esac *-musl) sed -i 's|__ptrace_request|int|g' source/Plugins/Process/Linux/NativeProcessLinux.cpp ;;
esac
fi
# Move clang files into the llvm source. # Move clang files into the llvm source.
if [ -d ${XBPS_BUILDDIR}/cfe-${version}.src ]; then if [ -d ${XBPS_BUILDDIR}/cfe-${version}.src ]; then