makefile: use bazel to compile importer/tidb binary files (#64859)
This commit is contained in:
6
Makefile
6
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
|
||||
|
||||
Reference in New Issue
Block a user