mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-03 22:13:07 +00:00
debug
This commit is contained in:
parent
dbb833bbae
commit
0f86992c5b
4
Makefile
4
Makefile
@ -39,11 +39,13 @@ build:
|
|||||||
ls -l $(LIBS_DIR)
|
ls -l $(LIBS_DIR)
|
||||||
go env CGO_LDFLAGS
|
go env CGO_LDFLAGS
|
||||||
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go
|
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go
|
||||||
|
|
||||||
run:
|
run:
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
pwsh -Command "Copy-Item libs\libcodex.dll ."
|
pwsh -Command "Copy-Item libs\libcodex.dll ."
|
||||||
pwsh -Command ".\$(BIN_NAME)"
|
pwsh -Command ".\$(BIN_NAME)"
|
||||||
|
else ifeq ($(UNAME_S),Darwin)
|
||||||
|
otool -L libs/libcodex.dylib
|
||||||
|
DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)
|
||||||
else
|
else
|
||||||
./$(BIN_NAME)
|
./$(BIN_NAME)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user