macOS / darwin builds #8

Open
opened 2026-06-26 11:25:53 +00:00 by decentral1se · 1 comment
Owner

It looks hellish!

https://blog.crafteo.io/2024/02/29/my-rust-cross-compilation-journey/

If you see this and have a mac, then please send help 🙃

It's possible to add it into your scripts/generate.sh script following the loro-go setup: https://github.com/aholstenson/loro-go/blob/b51c3b2d80d1f5024cb51937ae845b058c233981/scripts/generate.sh#L10 However, loro-go makes use of Github Actions to get the right environment for building: https://github.com/aholstenson/loro-go/blob/b51c3b2d80d1f5024cb51937ae845b058c233981/.github/workflows/build-libs.yml#L19

My main question/worry: can you also make it independent of glibc using musl or are there other tricks? The goal is a static binary which doesn't rely on specific parts of the users workstation. I have no experience in this with darwin.

It looks hellish! > https://blog.crafteo.io/2024/02/29/my-rust-cross-compilation-journey/ If you see this and have a mac, then please send help 🙃 It's possible to add it into your [`scripts/generate.sh`](https://git.coopcloud.tech/decentral1se/iroh-go/src/branch/main/scripts/generate.sh) script following the `loro-go` setup: https://github.com/aholstenson/loro-go/blob/b51c3b2d80d1f5024cb51937ae845b058c233981/scripts/generate.sh#L10 However, `loro-go` makes use of Github Actions to get the right environment for building: https://github.com/aholstenson/loro-go/blob/b51c3b2d80d1f5024cb51937ae845b058c233981/.github/workflows/build-libs.yml#L19 My main question/worry: can you also make it independent of `glibc` using `musl` or are there other tricks? The goal is a static binary which doesn't rely on specific parts of the users workstation. I have no experience in this with darwin.
Collaborator

@decentral1se i bought a mac mini for a contract this year, which means i can test building any incantations you throw at me!

@decentral1se i bought a mac mini for a contract this year, which means i can test building any incantations you throw at me!
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: decentral1se/iroh-go#8