-
Notifications
You must be signed in to change notification settings - Fork 10
/
.bazelrc
56 lines (40 loc) · 1.84 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
# Don't inherit PATH and LD_LIBRARY_PATH.
build --incompatible_strict_action_env
# Don't use the legacy workspace system.
build --noenable_workspace
# Enforce C++20 as the default for rules_cc, regardless of toolchain config.
build --cxxopt=-std=c++20 --host_cxxopt=-std=c++20
# Since expect rules_cc targets to be mainly exec_tools, use O3.
build --cxxopt=-O3 --host_cxxopt=-O3
# Forbid network access unless explicitly enabled.
build --sandbox_default_allow_network=false
# Use correct runfile locations.
build --nolegacy_external_runfiles
# Enable sandboxing for exclusive tests like GPU performance tests.
test --incompatible_exclusive_test_sandboxed
# Make sure rules_cc uses the correct transition mechanism.
build --incompatible_enable_cc_toolchain_resolution
# Propagate tags such as no-remote for precompilations to downstream actions.
common --incompatible_allow_tags_propagation
# Bzlmod configuration.
common --enable_bzlmod
common --registry=https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main/
common --registry=https://raw.githubusercontent.com/eomii/bazel-eomii-registry/main/
# Remote optimizations.
build --remote_build_event_upload=minimal
build --remote_download_minimal
build --nolegacy_important_outputs
# Smaller profiling. Careful. Disabling this might explode remote cache usage.
build --slim_profile
build --experimental_profile_include_target_label
build --noexperimental_profile_include_primary_output
# Workaround for NativeLink expecting this to be set to `main`
build --remote_instance_name=main
# Nix-generated action env for rules_ll.
try-import %workspace%/.bazelrc.ll
# Nix-generated flags for LRE.
try-import %workspace%/.bazelrc.lre
# Allow user-side customization.
try-import %workspace%/.bazelrc.user
# Workaround to build docs. Only required in rules_ll project root.
build:docs --noremote_accept_cached