How to Apply a GCC Patch

前端 未结 2 545
无人及你
无人及你 2021-01-18 11:42

I\'m trying to apply this patch to GCC on MinGW to get it to compile GDC 2, but I don\'t know how. (I\'m still new to the internals of GCC, and even to *nix tools in general

2条回答
  •  长情又很酷
    2021-01-18 12:14

    By default GNU Patch can be used by feeding a patch file to it from stdin (console input), e.g.:

    patch < file.patch
    

    There are many switches and options patch can use, the functionality is described here:

    http://www.rtr.com/winpak/Documentation/patch.htm

    http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Invoking%20patch

    patch and diff work hand in hand. A small demonstration is found on wikipedia.

提交回复
热议问题