Skip to content

Commit 525727f

Browse files
committed
Add verbose configuration flags
This adds a config that can be enabled using the option `--config=verbose`. It it is off by default, keeping the previous behavior intact. When enabled, it makes build and test runs produce a modest increase in diagnostic output. This is useful when debugging GitHub Actions workflows. Also in this commit: some comments acting as section dividers to make navigating this file easier. (I find it helpful when trying to figure out where a given change should go.)
1 parent 075c9eb commit 525727f

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.bazelrc

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# ~~~~ General flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16+
1517
# Common flags
1618
common --announce_rc
1719
common --experimental_repo_remote_exec
@@ -28,8 +30,14 @@ test --test_output=errors
2830
build:cuda --@local_config_cuda//:enable_cuda
2931
build:cuda --define=using_cuda=true --define=using_cuda_nvcc=true
3032

33+
# Configs for verbose builds & tests
34+
common:verbose --announce_rc
35+
common:verbose --auto_output_filter=none
36+
build:verbose --show_progress_rate_limit=1
37+
test:verbose --test_summary=detailed
38+
3139

32-
##### Sanitizers (choose one, or nosan for none) #####
40+
# ~~~~ Sanitizers (choose one, or nosan for none) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3341

3442
# Shared config for sanitizers
3543
build:sanitizer --strip=never
@@ -50,7 +58,7 @@ build:msan --linkopt -fsanitize=leak
5058
build:nosan --
5159

5260

53-
##### Instruction set options (choose one) #####
61+
# ~~~~ Instruction set options (choose one) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5462

5563
# Build with AVX2 + FMA
5664
build:avx --copt -O3
@@ -65,7 +73,7 @@ build:sse --copt -msse4
6573
build:basic --copt -O3
6674

6775

68-
##### Parallelization (choose one, or nopenmp for none) #####
76+
# ~~~~ Parallelization (choose one, or nopenmp for none) ~~~~~~~~~~~~~~~~~~~~~~~
6977

7078
# Build with OpenMP
7179
build:openmp --copt -fopenmp
@@ -74,7 +82,8 @@ build:openmp --linkopt -lgomp
7482
# No OpenMP
7583
build:nopenmp --
7684

77-
##### Memory handler (choose one) #####
85+
86+
# ~~~~ Memory handler (choose one) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7887

7988
# Build with tcmalloc
8089
build:tcmalloc --linkopt="-ltcmalloc"

0 commit comments

Comments
 (0)