-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
32 lines (26 loc) · 1.17 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
# Build options
build --incompatible_strict_action_env
build --enable_platform_specific_config
# C++ options
build --cxxopt='-std=c++20'
build --cxxopt='-Wall' # Enable all warnings
build --cxxopt='-Wextra' # Enable extra warnings
build --cxxopt='-Werror' # Treat warnings as errors
# Build performance
build --jobs auto # Automatic job count based on CPU cores
build --loading_phase_threads=auto # Optimize loading phase
build --local_resources=cpu=HOST_CPUS*.8 # Use 80% of CPU resources
# Cache and output options
build --disk_cache=~/.cache/bazel # Enable disk cache
build --show_timestamps # Show timestamps in output
build --verbose_failures # Show detailed errors
build --worker_verbose # Verbose worker output for debugging
# Test options
test --test_output=all
test --test_verbose_timeout_warnings
test --test_summary=detailed # More detailed test summary
test --test_strategy=exclusive # Run tests sequentially
# Enable Bzlmod
common --enable_bzlmod
# Keep the environment clean
build --incompatible_strict_action_env=true