From fe1f9f81ca50ef00aeb0dacef1df661a55a99f5c Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Thu, 4 Dec 2025 23:16:53 +0800 Subject: [PATCH] makefile: use bazel to compile importer/tidb binary files (#64859) --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 1e969b9ac4..f778623956 100644 --- a/Makefile +++ b/Makefile @@ -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