Skip to content

Commit 03c0d1f

Browse files
authored
chore: do not require mac users to preset env vars (#1239)
1 parent de29601 commit 03c0d1f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ lily:
9797
go build $(GOFLAGS) -o lily -mod=readonly .
9898
BINS+=lily
9999

100+
ifeq ($(shell uname -s), Darwin)
101+
export CGO_ENABLED=1
102+
ifeq ($(shell uname -m), arm64)
103+
export GOARCH=arm64
104+
export LIBRARY_PATH=/opt/homebrew/lib
105+
export FFI_BUILD_FROM_SOURCE=1
106+
endif
107+
endif
108+
100109
.PHONY: clean
101110
clean:
102111
rm -rf $(CLEAN) $(BINS)

0 commit comments

Comments
 (0)