sillsdev / Mercurial4Chorus

Mercurial version used by Chorus
GNU General Public License v2.0
1 stars 3 forks source link

Build chg.exe for Windows #26

Open rmunn opened 1 month ago

rmunn commented 1 month ago

Building chg for Linux is trivial as there is already a Makefile provided. However, chg makes a lot of Linux assumptions, such as the existence of a /proc/self/exe path, which is provided by the Linux kernel. To be able to get chg's speed benefits on Windows, we'll need to port chg to Windows, replacing its Linux-based API assumptions with calls to the Windows API. This should be doable as chg is only four C files in total, but it won't be as trivial as building chg for Linux.

rmunn commented 1 month ago

Linuxisms that would need to change to build chg for Windows, by file:

chg.c:

Rest of the files will be in separate comments.