-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
54 lines (47 loc) · 2.64 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
## https://docs.aspect.build/guides/bazelrc/
## https://github.com/aspect-build/bazel-lib/tree/main/.aspect/bazelrc
# Workaround for cpp header file conflict on macos.
# see: https://github.com/bazelbuild/bazel/issues/8053
build --sandbox_block_path=/usr/local
# Not needed after https://github.com/bazelbuild/bazel/issues/7260 is closed
build --incompatible_enable_cc_toolchain_resolution
# https://github.com/grpc/grpc/blob/master/tools/bazel.rc
# grpc requires c++14
#build:windows --cxxopt='/std:c++14'
#build:windows --host_cxxopt='/std:c++14'
#build:linux --cxxopt='-std=c++14'
#build:linux --host_cxxopt='-std=c++14'
#build:macos --cxxopt='-std=c++14'
#build:macos --host_cxxopt='-std=c++14'
#build:freebsd --cxxopt='-std=c++14'
#build:freebsd --host_cxxopt='-std=c++14'
build --color=yes --verbose_failures --stamp --workspace_status_command=./scripts/shell/status.sh --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 ###--@rules_rust//rust/toolchain/channel=nightly --toolchain_resolution_debug
common --announce_rc --show_timestamps --enable_bzlmod
query #--output=label_kind
test --color=yes --test_verbose_timeout_warnings --test_output=errors
test:stress --runs_per_test=10 --notest_keep_going
#try-import ".bazelrc.local" --test_output=errors
###############################
# Directory structure #
###############################
# Artifacts are typically placed in a directory called "dist"
# Be aware that this setup will still create a bazel-out symlink in
# your project directory, which you must exclude from version control and your
# editor's search path.
#build --symlink_prefix=dist/
###############################
# Optimizations #
###############################
# Speed up all builds by not checking if external repository files have been modified.
# Docs: https://github.com/bazelbuild/bazel/blob/1af61b21df99edc2fc66939cdf14449c2661f873/src/main/java/com/google/devtools/build/lib/bazel/repository/RepositoryOptions.java#L244
build --noexperimental_check_external_repository_files
fetch --noexperimental_check_external_repository_files
query --noexperimental_check_external_repository_files
# Directories used by sandboxed non-worker execution may be reused to avoid unnecessary setup costs.
# Save time on Sandbox creation and deletion when many of the same kind of action run during the
# build.
# Docs: https://bazel.build/reference/command-line-reference#flag--reuse_sandbox_directories
build --reuse_sandbox_directories
# Avoid this flag being enabled by remote_download_minimal or remote_download_toplevel
# See https://meroton.com/blog/bazel-6-errors-build-without-the-bytes/
build --noexperimental_action_cache_store_output_metadata