Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for generating macOS binaries #967

Closed
atc0005 opened this issue Oct 4, 2024 · 0 comments · Fixed by #978
Closed

Add support for generating macOS binaries #967

atc0005 opened this issue Oct 4, 2024 · 0 comments · Fixed by #978
Assignees
Labels
builds documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Oct 4, 2024

Borrow from the changes made to support including Linux arm64 binaries for this project.

Support at minimum these variations:

# macOS 64-bit
GOOS=darwin GOARCH=amd64

# macOS (Apple Silicon)
GOOS=darwin GOARCH=arm64

See also:

Starting from Go 1.1, the appropriate GOARM value will be chosen if you compile the program from source on the target machine. In cross compilation situations, it is recommended that you always set an appropriate GOARM value along with GOARCH.

Architecture Status GOARM value GOARCH value
ARMv4 and below not supported n/a n/a
ARMv5 supported GOARM=5 GOARCH=arm
ARMv6 supported GOARM=6 GOARCH=arm
ARMv7 supported GOARM=7 GOARCH=arm
ARMv8 supported n/a GOARCH=arm64
ARMv9 supported n/a GOARCH=arm64

refs:

@atc0005 atc0005 added documentation Improvements or additions to documentation enhancement New feature or request builds labels Oct 4, 2024
@atc0005 atc0005 added this to the Future milestone Oct 4, 2024
@atc0005 atc0005 self-assigned this Oct 4, 2024
@atc0005 atc0005 modified the milestones: Future, v0.19.0 Oct 4, 2024
atc0005 added a commit that referenced this issue Oct 4, 2024
Update build process (Makefile) to support:

- `darwin/amd64`
- `darwin/arm64`

refs GH-967
atc0005 added a commit that referenced this issue Oct 4, 2024
- note OS / Go release combination limitations
- list Makefile recipes to target specific macOS build options

refs GH-967
atc0005 added a commit that referenced this issue Oct 4, 2024
- note OS / Go release combination limitations
- list Makefile recipes to target specific macOS build options

refs GH-967
atc0005 added a commit that referenced this issue Oct 4, 2024
- update build process (Makefile) to generate binaries for
  supported macOS architectures
  - `darwin/amd64`
  - `darwin/arm64`
- update README
  - note OS / Go release combination limitations
  - list Makefile recipes to target specific macOS build options

refs GH-967
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant