mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
Print build env infomation (#13300)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
parent
ee7e400640
commit
9051d64f47
10
Makefile
10
Makefile
@ -89,7 +89,13 @@ BUILD_TIME = $(shell date --utc)
|
||||
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
||||
GO_VERSION = $(shell go version)
|
||||
|
||||
milvus: build-cpp
|
||||
print-build-info:
|
||||
@echo "Build Tag: $(BUILD_TAGS)"
|
||||
@echo "Build Time: $(BUILD_TIME)"
|
||||
@echo "Git Commit: $(GIT_COMMIT)"
|
||||
@echo "Go Version: $(GO_VERSION)"
|
||||
|
||||
milvus: build-cpp print-build-info
|
||||
@echo "Building Milvus ..."
|
||||
@mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="1" && GO111MODULE=on $(GO) build \
|
||||
-ldflags="-X 'main.BuildTags=$(BUILD_TAGS)' -X 'main.BuildTime=$(BUILD_TIME)' -X 'main.GitCommit=$(GIT_COMMIT)' -X 'main.GoVersion=$(GO_VERSION)'" \
|
||||
@ -163,7 +169,7 @@ clean:
|
||||
@rm -rf lib/
|
||||
@rm -rf $(GOPATH)/bin/milvus
|
||||
|
||||
milvus-tools:
|
||||
milvus-tools: print-build-info
|
||||
@echo "Building tools ..."
|
||||
@mkdir -p $(INSTALL_PATH)/tools && go env -w CGO_ENABLED="1" && GO111MODULE=on $(GO) build \
|
||||
-ldflags="-X 'main.BuildTags=$(BUILD_TAGS)' -X 'main.BuildTime=$(BUILD_TIME)' -X 'main.GitCommit=$(GIT_COMMIT)' -X 'main.GoVersion=$(GO_VERSION)'" \
|
||||
|
Loading…
Reference in New Issue
Block a user