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