1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:17:44 +00:00

Toolchain: Allow many patches for gdb and add clang workaround

This ports https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ae61525fcf456ab395d55c45492a106d1275873a
from upstream binutils, which enables building with the newest host
clang versions.
This commit is contained in:
Andrew Kaster 2023-03-31 18:16:14 -06:00 committed by Andreas Kling
parent af01203733
commit d74fa5e283
3 changed files with 139 additions and 3 deletions

View file

@ -234,11 +234,13 @@ pushd "$DIR/Tarballs"
git init > /dev/null
git add . > /dev/null
git commit -am "BASE" > /dev/null
git apply "$DIR"/Patches/gdb.patch > /dev/null
git am "${DIR}"/Patches/gdb/*.patch > /dev/null
else
patch -p1 < "$DIR"/Patches/gdb.patch > /dev/null
for patch in "${DIR}"/Patches/gdb/*.patch; do
patch -p1 < "${patch}" > /dev/null
done
fi
$MD5SUM "$DIR"/Patches/gdb.patch > .patch.applied
$MD5SUM "$DIR"/Patches/gdb/*.patch > .patch.applied
popd
fi