Skip to content

Commit

Permalink
bazel update
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Jan 4, 2023
1 parent da11763 commit 1abbfb9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tidb-server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,31 @@ go_binary(
name = "tidb-server",
embed = [":tidb-server_lib"],
visibility = ["//visibility:public"],
x_defs = {
"github.com/pingcap/tidb/parser/mysql.TiDBReleaseVersion": "{STABLE_TiDB_RELEASE_VERSION}",
"github.com/pingcap/tidb/util/versioninfo.TiDBBuildTS": "{STABLE_TiDB_BUILD_UTCTIME}",
"github.com/pingcap/tidb/util/versioninfo.TiDBGitHash": "{STABLE_TIDB_GIT_HASH}",
"github.com/pingcap/tidb/util/versioninfo.TiDBGitBranch": "{STABLE_TIDB_GIT_BRANCH}",
"github.com/pingcap/tidb/util/versioninfo.TiDBEdition": "{STABLE_TIDB_EDITION}",
},
)

go_binary(
name = "tidb-server-check",
embed = [":tidb-server_lib"],
gc_linkopts = [
"-X",
"github.com/pingcap/tidb/config.checkBeforeDropLDFlag=1",
],
visibility = ["//visibility:public"],
)

go_test(
name = "tidb-server_test",
timeout = "short",
srcs = ["main_test.go"],
embed = [":tidb-server_lib"],
flaky = True,
deps = [
"//config",
"//parser/mysql",
Expand Down

0 comments on commit 1abbfb9

Please sign in to comment.