-
Notifications
You must be signed in to change notification settings - Fork 5
/
.bazelrc
93 lines (72 loc) · 3.57 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
build --workspace_status_command=$(pwd)/bazel/workspace_status.sh --stamp
# Use local disk cache by default
build --disk_cache=~/.cache/bazel/local_cache
# Repository cache
build --repository_cache=~/.cache/bazel/repository_cache
# Use hard links in the repository cache, to save disk space
build --experimental_repository_cache_hardlinks=true
# Retry downloads
build --experimental_repository_downloader_retries=3
# Use hermetic JDK
# See https://bazel.build/docs/bazel-and-java#hermetic-testing
build --java_runtime_version=remotejdk_17
# --config=ci implies --config=lint
build:ci --config=lint
# --config=ci implies --config=dfinity
build:ci --config=dfinity
# --config=lint implies both --config=fmt and --config=clippy.
build:lint --config=fmt
build:lint --config=clippy
build:ci --progress_report_interval=30
build --sandbox_default_allow_network
build --incompatible_strict_action_env # use an environment with a static value for PATH and do not inherit LD_LIBRARY_PATH
# default to optimized and unstripped binaries.
build --compilation_mode=opt
build --@rules_rust//:extra_rustc_flags=-Cdebug-assertions=on
build --@rules_rust//:extra_rustc_flag=-Dbindings_with_variant_name
build --strip=never
# build --remote_cache=grpc://localhost:9092
build --remote_instance_name=default
build --google_default_credentials=false
build --remote_upload_local_results=false
# build --experimental_remote_cache_async
build --experimental_remote_cache_compression # compress/decompress cache blobs with zstd
build --remote_timeout=30s # Default is 60s.
build:ci --remote_timeout=5m # Default is 60s.
build:ci --remote_upload_local_results=true
build:local --experimental_remote_downloader=
# Does not produce valid JSON. See https://github.com/bazelbuild/bazel/issues/14209
build --execution_log_json_file=bazel-build-log.json
build:dfinity --bes_results_url=https://dash.idx.dfinity.network/invocation/
build:dfinity --bes_backend=bes.idx.dfinity.network
build --bes_timeout=30s # Default is no timeout.
build:ci --bes_timeout=180s # Default is no timeout.
build:ci --bes_upload_mode=fully_async
build:ci --bes_results_url=
build:ci --bes_backend=
build --remote_local_fallback
build --experimental_repository_downloader_retries=3 # https://bazel.build/reference/command-line-reference#flag--experimental_repository_downloader_retries
build --cxxopt='-std=c++17'
build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:clippy --output_groups=+clippy_checks
build --@rules_rust//:clippy.toml=//:clippy.toml --@rules_rust//:clippy_flags=-D,warnings,-D,clippy::all,-D,clippy::mem_forget,-A,clippy::manual_clamp,-A,clippy::redundant_closure,-A,clippy::too_many_arguments,-C,debug-assertions=off
build:fmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
build:fmt --output_groups=+rustfmt_checks
build --@rules_rust//:rustfmt.toml=//:rustfmt.toml
test --test_output=streamed
test --test_env=RUST_BACKTRACE=full
test:precommit --build_tests_only
# Run all tests once by default, run flaky tests up to 3 times in CI.
test --flaky_test_attempts=1
test:ci --flaky_test_attempts=default
build:ci --remote_local_fallback
# So that developers can build in debug mode.
build:dev --compilation_mode=fastbuild
build:macos_ci --compilation_mode=fastbuild
# Run `bazel build ... --config=local` if you don't have access to the buildfarm infrastructure.
build:local --remote_cache=
build:local --bes_backend=
# Suppress all additional output to make it more convenient in scripts
query --ui_event_filters=-info,-debug --noshow_progress
cquery --ui_event_filters=-info,-debug --noshow_progress
try-import %workspace%/user.bazelrc