makefile: use bazel to compile importer/tidb binary files (#64859)

This commit is contained in:
Weizhen Wang
2025-12-04 23:16:53 +08:00
committed by GitHub
parent c4dfb6d5d2
commit fe1f9f81ca

View File

@ -690,6 +690,12 @@ bazel_coverage_test_ddlargsv1: failpoint-enable bazel_ci_simple_prepare
-- //... -//cmd/... -//tests/graceshutdown/... \
-//tests/globalkilltest/... -//tests/readonlytest/... -//tests/realtikvtest/...
.PHONY: bazel_bin
bazel_bin: ## Build importer/tidb binary files with Bazel build system
mkdir -p bin
bazel $(BAZEL_GLOBAL_CONFIG) build $(BAZEL_CMD_CONFIG) \
//cmd/importer:importer //cmd/tidb-server:tidb-server --define gotags=$(BUILD_TAGS) --//build:with_nogo_flag=false
.PHONY: bazel_build
bazel_build: ## Build TiDB using Bazel build system
mkdir -p bin