This commit is contained in:
Arnaud 2025-10-15 12:07:28 +02:00
parent dbb833bbae
commit 0f86992c5b
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -39,11 +39,13 @@ build:
ls -l $(LIBS_DIR)
go env CGO_LDFLAGS
CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o $(BIN_NAME) main.go
run:
ifeq ($(OS),Windows_NT)
pwsh -Command "Copy-Item libs\libcodex.dll ."
pwsh -Command ".\$(BIN_NAME)"
else ifeq ($(UNAME_S),Darwin)
otool -L libs/libcodex.dylib
DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)
else
./$(BIN_NAME)
endif