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 <yihao.dai@zilliz.com>
This commit is contained in:
yihao.dai 2024-09-01 17:05:09 +08:00 committed by GitHub
parent 407fc933e7
commit ef451f5e1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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" && \