Skip to content

Commit

Permalink
trying this for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaney committed Oct 15, 2024
1 parent 552df1b commit 3760aa8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ endif

build:
rm -rf tflite_cpu
ifeq ($(MOD_OS),Darwin)
export LIBRARY_PATH=/opt/homebrew/lib && \
export CGO_LDFLAGS=-L/opt/homebrew/lib && \
export CGO_CFLAGS=-I/opt/homebrew/include && \
go build -v -o tflite_cpu main.go
else
go build -v -o tflite_cpu main.go
endif

tflite_cpu: build
ifeq ($(MOD_OS),Darwin)
Expand Down

0 comments on commit 3760aa8

Please sign in to comment.