forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
114 lines (102 loc) · 5.6 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# HEY! DON'T edit this file unless you really want to change a configuration for
# everyone building cockroach ever.
# This file is checked into tree and is not auto-generated.
# If you are following directions from `dev doctor`, you probably want to put
# your configurations in ~/.bazelrc or .bazelrc.user instead.
# Configurations in ~/.bazelrc apply to all Bazel builds across all projects on
# your machine. Configurations in .bazelrc.user apply only to builds in this
# workspace. Take a closer look to see which one `dev doctor` is talking about.
# Note that .bazelrc.user should be in your checkout (next to this file), not
# your home directory.
build --enable_platform_specific_config
# Define a set up flag aliases, so people can use `--cross` instead of the
# longer `//build/toolchains:cross_flag`.
build --flag_alias=crdb_test=//build/toolchains:crdb_test_flag
build --flag_alias=crdb_test_off=//build/toolchains:crdb_test_off_flag
build --flag_alias=cross=//build/toolchains:cross_flag
build --flag_alias=dev=//build/toolchains:dev_flag
build --flag_alias=force_build_cdeps=//build/toolchains:force_build_cdeps_flag
build --flag_alias=lintonbuild=//build/toolchains:nogo_flag
build --flag_alias=nolintonbuild=//build/toolchains:nonogo_explicit_flag
build --flag_alias=with_ui=//pkg/ui:with_ui_flag
build:crdb_test_off --crdb_test_off
build:cross --cross
build:dev --dev
build:force_build_cdeps --force_build_cdeps
build:lintonbuild --lintonbuild
build:nolintonbuild --nolintonbuild
# Note: nonogo is classically the name of the nolintonbuild configuration.
build:nonogo --nolintonbuild
build:test --crdb_test
build:with_ui --with_ui
# Basic settings.
build --define gotags=bazel,gss
build --experimental_proto_descriptor_sets_include_source_info
build --incompatible_strict_action_env --incompatible_enable_cc_toolchain_resolution
build --symlink_prefix=_bazel/
common --experimental_allow_tags_propagation
test --config=test --experimental_ui_max_stdouterr_bytes=10485760
build --ui_event_filters=-DEBUG
query --ui_event_filters=-DEBUG
clean --ui_event_filters=-WARNING
info --ui_event_filters=-WARNING
build:race --@io_bazel_rules_go//go/config:race "--test_env=GORACE=halt_on_error=1 log_path=stdout" --test_sharding_strategy=disabled
test:test --test_env=TZ=
# Note: these timeout values are used indirectly in `build/teamcity/cockroach/ci/tests/testrace_impl.sh`.
# If those values are updated, the script should be updated accordingly.
test:race --test_timeout=1200,6000,18000,72000
# CI should always run with `--config=ci` or `--config=cinolint`.
# Prefer the first to the second unless some other job will handle linting the
# same code you're building.
build:ci --config=cinolint
build:ci --lintonbuild
# Set `-test.v` in Go tests.
# Ref: https://github.com/bazelbuild/rules_go/pull/2456
test:cinolint --test_env=GO_TEST_WRAP_TESTV=1
# Dump all output for failed tests to the build log.
test:cinolint --test_output=errors
# Put all tmp artifacts in /artifacts/tmp.
build:cinolint --test_tmpdir=/artifacts/tmp
build:cross --stamp
# Cross-compilation configurations. Add e.g. --config=crosslinux to turn these on.
# Generally these should be used for development builds. Each cross config has
# a corresponding `base` config that is the same thing but without the
# `--workspace_status_command`; if using these `base` configs, you need to
# specify an appropriate `--workspace_status_command`. These `base` configs are
# used by the release process which needs to have more control over stamping.
build:crosslinux '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-pc-linux-gnu'
build:crosslinux --config=crosslinuxbase
build:crosslinuxbase --platforms=//build/toolchains:cross_linux
build:crosslinuxbase --config=cross
build:crosswindows '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-w64-mingw32'
build:crosswindows --config=crosswindowsbase
build:crosswindowsbase --platforms=//build/toolchains:cross_windows
build:crosswindowsbase --config=cross
build:crossmacos '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-apple-darwin21.2'
build:crossmacos --config=crossmacosbase
build:crossmacosbase --platforms=//build/toolchains:cross_macos
build:crossmacosbase --config=cross
build:crossmacosarm '--workspace_status_command=./build/bazelutil/stamp.sh aarch64-apple-darwin21.2'
build:crossmacosarm --config=crossmacosarmbase
build:crossmacosarmbase --platforms=//build/toolchains:cross_macos_arm
build:crossmacosarmbase --config=cross
build:crosslinuxarm '--workspace_status_command=./build/bazelutil/stamp.sh aarch64-unknown-linux-gnu'
build:crosslinuxarm --config=crosslinuxarmbase
build:crosslinuxarmbase --platforms=//build/toolchains:cross_linux_arm
build:crosslinuxarmbase --config=cross
build:crosslinuxs390x '--workspace_status_command=./build/bazelutil/stamp.sh s390x-unknown-linux-gnu'
build:crosslinuxs390x --config=crosslinuxs390xbase
build:crosslinuxs390xbase --platforms=//build/toolchains:cross_linux_s390x
build:crosslinuxs390xbase --config=cross
# devdarwinx86_64 is a legacy setting that implies `--config=dev`.
build:devdarwinx86_64 --config=dev
build:dev --config=simplestamp
build:macos --action_env=PATH=/opt/homebrew/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin
build:macos --host_action_env=PATH=/opt/homebrew/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin
# --config=simplestamp configures the build to stamp the build with inferred
# information about the configuration.
# All `dev` builds will use this configuration; all `cross` builds will use a
# more precise --workspace_status_command option.
build:simplestamp --stamp --workspace_status_command=./build/bazelutil/stamp.sh
try-import %workspace%/.bazelrc.user
# vi: ft=sh