summaryrefslogtreecommitdiff
path: root/Toolchain/BuildIt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Toolchain/BuildIt.sh')
-rwxr-xr-xToolchain/BuildIt.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/Toolchain/BuildIt.sh b/Toolchain/BuildIt.sh
index a4c96ca627..127a982ab4 100755
--- a/Toolchain/BuildIt.sh
+++ b/Toolchain/BuildIt.sh
@@ -271,11 +271,13 @@ pushd "$DIR/Tarballs"
git init > /dev/null
git add . > /dev/null
git commit -am "BASE" > /dev/null
+ git am "$DIR"/Patches/gcc-support-mold-linker.patch > /dev/null
git apply "$DIR"/Patches/gcc.patch > /dev/null
else
+ patch -p1 < "$DIR/Patches/gcc-support-mold-linker.patch" > /dev/null
patch -p1 < "$DIR/Patches/gcc.patch" > /dev/null
fi
- $MD5SUM "$DIR/Patches/gcc.patch" > .patch.applied
+ $MD5SUM "$DIR/Patches/gcc.patch" "$DIR/Patches/gcc-support-mold-linker.patch" > .patch.applied
popd
if [ "$SYSTEM_NAME" = "Darwin" ]; then