We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d076b7 commit 32cc242Copy full SHA for 32cc242
build/teamcity/cockroach/nightlies/microbenchmark_build_support.sh
@@ -24,7 +24,13 @@ function build_and_upload_binaries() {
24
return
25
fi
26
27
- config_args="--config=crosslinux --crdb_test_off"
+ # Check if crdb_bench flag is supported, since we could be building an older
28
+ # version that does not support it.
29
+ if grep -q "crdb_bench" .bazelrc; then
30
+ config_args="--config=crosslinux --crdb_test_off --crdb_bench"
31
+ else
32
+ config_args="--config=crosslinux --crdb_test_off"
33
+ fi
34
bazel clean
35
go_test_targets=$(bazel query kind\(go_test, //$BENCH_PACKAGE:all\))
36
bazel build $config_args $go_test_targets
0 commit comments