Skip to content

Commit

Permalink
Support building for macOS on Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
drakon64 authored and jhead committed Dec 19, 2021
1 parent d9087a1 commit 44056d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL=/bin/bash
.PHONY: prep

OUT=bin/phantom-windows.exe bin/phantom-windows-32bit.exe bin/phantom-macos bin/phantom-linux bin/phantom-linux-arm5 bin/phantom-linux-arm6 bin/phantom-linux-arm7 bin/phantom-linux-arm8
OUT=bin/phantom-windows.exe bin/phantom-windows-32bit.exe bin/phantom-macos bin/phantom-macos-arm8 bin/phantom-linux bin/phantom-linux-arm5 bin/phantom-linux-arm6 bin/phantom-linux-arm7 bin/phantom-linux-arm8
CMDSRC=phantom.go

build: prep ${OUT}
Expand All @@ -21,6 +21,11 @@ bin/phantom-macos:
GOOS=darwin GOARCH=amd64 go build -o ../bin/phantom-macos ${CMDSRC} && \
popd

bin/phantom-macos-arm8:
pushd cmd && \
GOOS=darwin GOARCH=arm64 go build -o ../bin/phantom-macos-arm8 ${CMDSRC} && \
popd

bin/phantom-linux:
pushd cmd && \
GOOS=linux GOARCH=amd64 go build -o ../bin/phantom-linux ${CMDSRC} && \
Expand Down

0 comments on commit 44056d8

Please sign in to comment.