From ef451f5e1fb498c058e75370e7cbfab5815809e8 Mon Sep 17 00:00:00 2001 From: "yihao.dai" Date: Sun, 1 Sep 2024 17:05:09 +0800 Subject: [PATCH] enhance: Add build-go target (#35844) Add a `build-go` target to the Makefile that only compiles Go. issue: https://github.com/milvus-io/milvus/issues/35611 Signed-off-by: bigsheeper --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b1e945f221..6443de2604 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,9 @@ ifeq (${ENABLE_AZURE}, false) AZURE_OPTION := -Z endif -milvus: build-cpp print-build-info +milvus: build-cpp print-build-info build-go + +build-go: @echo "Building Milvus ..." @source $(PWD)/scripts/setenv.sh && \ mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="1" && \