Skip to content

Commit 0f86992

Browse files
committed
debug
1 parent dbb833b commit 0f86992

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ build:
3939
ls -l $(LIBS_DIR)
4040
go env CGO_LDFLAGS
4141
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go
42-
4342
run:
4443
ifeq ($(OS),Windows_NT)
4544
pwsh -Command "Copy-Item libs\libcodex.dll ."
4645
pwsh -Command ".\$(BIN_NAME)"
46+
else ifeq ($(UNAME_S),Darwin)
47+
otool -L libs/libcodex.dylib
48+
DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)
4749
else
4850
./$(BIN_NAME)
4951
endif

0 commit comments

Comments
 (0)