-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
36 lines (27 loc) · 1.31 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
# Enable Bzlmod for every Bazel command
common --enable_bzlmod
# All options comming from this file will be announced on the terminal.
common --announce_rc
# Add timestamps to message.
# common --show_timestamps
# If a command fails, print out the full command line.
build --verbose_failures
# Additional debug info for toolchain reolution (warning: verbose and hard-to-read)
build --toolchain_resolution_debug=//failing:target
# Use C++20 as C++17 would output annoying warnings like the following;
# warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
# namespace amp::config {
# Note: This is disabled as arm_none_eabi (for STM32) toolchain config doesn't play well with C++20.
# This can instead be optionally enabled for non-STM32 build targets.
# build --cxxopt=-std=c++20
build --cxxopt=-std=c++17
# Build using platforms by default
# Background: https://bazel.build/concepts/platforms#status
build --incompatible_enable_cc_toolchain_resolution
# Print the full error of the test that fails.
test --test_output=errors
# Configuration for "stress", e.g.
# bazel test --config=stress :my_target
# (the flags --runs_per_test=10 and --notest_keep_going will be added to the command line).
test:stress --runs_per_test=10
test:stress --notest_keep_going