Closed JanX2 closed 1 year ago
Any thoughts @Uncommon?
I may get to have a look at this soon, although unfortunately I don't have access to an M1 machine right now.
I can test any changes you make. :)
I finally got myself a new laptop, so I'm working on this now. I just got it working for ARM; Next I'll make sure it works both ways.
I've made some changes which I believe enable building for ARM without breaking the Intel build. A universal build will be more challenging because it requires universal builds of libgit2 as well as the libraries it uses.
In the process I've also changed the primary branch from master
to main
.
I ran into a few issues trying to build Xit natively for Apple silicon. Most of these were, because the default homebrew root changed from "/usr/local" to "/opt/homebrew". I also had to change the architecture to ARCHS_STANDARD.
If I had achieved a universal binary build, I would just have opened a pull request. But the libgit2 script makes it necessary to build two separate "libgit2.a" for aarch64 and x86_64 and merge them. At least unless there is a better solution.
Here is my hacked branch: https://github.com/janx2/Xit/tree/M1