From 316d2bde6cf72a69fecc54aa03bcefe0c194f0eb Mon Sep 17 00:00:00 2001 From: Marcin Czenko Date: Fri, 28 Nov 2025 01:05:21 +0100 Subject: [PATCH] adds make target to build the lib with debug API --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 0770cda..8678dea 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,10 @@ libcodex: @echo "Building libcodex..." @$(MAKE) -C $(NIM_CODEX_DIR) libcodex +libcodex-with-debug-api: + @echo "Building libcodex..." + @$(MAKE) -C $(NIM_CODEX_DIR) libcodex CODEX_LIB_PARAMS="-d:codex_enable_api_debug_peers" + build: @echo "Building Codex Go Bindings..." CGO_ENABLED=1 CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o codex-go ./codex