Xit icon indicating copy to clipboard operation
Xit copied to clipboard

Homebrew, M1

Open JanX2 opened this issue 3 years ago • 3 comments

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

JanX2 avatar Jun 18 '22 10:06 JanX2

Any thoughts @Uncommon?

JanX2 avatar Jun 21 '22 11:06 JanX2

I may get to have a look at this soon, although unfortunately I don't have access to an M1 machine right now.

Uncommon avatar Jun 21 '22 16:06 Uncommon

I can test any changes you make. :)

JanX2 avatar Jul 08 '22 10:07 JanX2

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.

Uncommon avatar Jan 04 '23 00:01 Uncommon

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.

Uncommon avatar Jan 11 '23 23:01 Uncommon