Skip to content

Commit

Permalink
chore: do not require mac users to preset env vars (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasteph authored Jun 28, 2023
1 parent de29601 commit 03c0d1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ lily:
go build $(GOFLAGS) -o lily -mod=readonly .
BINS+=lily

ifeq ($(shell uname -s), Darwin)
export CGO_ENABLED=1
ifeq ($(shell uname -m), arm64)
export GOARCH=arm64
export LIBRARY_PATH=/opt/homebrew/lib
export FFI_BUILD_FROM_SOURCE=1
endif
endif

.PHONY: clean
clean:
rm -rf $(CLEAN) $(BINS)
Expand Down

0 comments on commit 03c0d1f

Please sign in to comment.