llvm: fix applying lldb patches.
This commit is contained in:
parent
ad5490e5e1
commit
171ed29f27
1 changed files with 10 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue