Skip to content

Commit

Permalink
GCC no longer needs patching for MinGW builds
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieChopin committed Apr 8, 2024
1 parent 310b5fb commit 2bb57f1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions build-bleeding-edge-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -800,14 +800,6 @@ extract() {
extract "${binutilsArchive}"
extract "${expatArchive}"
extract "${gccArchive}"
if [ ! -f "${gcc}_patched" ]; then
messageB "Patching ${gcc}"
(
cd "${gcc}"
sed -Ei 's,^( *)#( *)include <windows\.h>,\1#\2define WIN32_LEAN_AND_MEAN\n&,' $(grep -Flr "<windows.h>")
)
touch "${gcc}_patched"
fi
if [ "${skipGdb}" = "n" ]; then
extract "${gdbArchive}"
fi
Expand Down

0 comments on commit 2bb57f1

Please sign in to comment.