1# Copyright 2025 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15# These flags are highly recommended. If you turn any off, you might have a 16# worse experience, but things shouldn't break in inscrutable ways. 17 18# UX flags 19# ======== 20# Improve debugability by printing all arguments for failing commands. 21common --verbose_failures 22 23# Suppress the DEBUG: log messages from bazel. We get lots of spammy DEBUG: 24# messages from our third-party dependencies. 25build --ui_event_filters=-debug 26 27# Specifies desired output mode for running tests. 28# Valid values are 29# 'summary' to output only test status summary 30# 'errors' to also print test logs for failed tests 31# 'all' to print logs for all tests 32# 'streamed' to output logs for all tests in real time 33# (this will force tests to be executed locally one at a time regardless 34# of --test_strategy value). 35# See more at https://bazel.build/docs/user-manual#test-output. 36test --test_output=errors 37 38# C++ related flags 39# ================= 40# Do not strip debug symbols by default. 41common --strip=never 42 43# Silence all C/C++ warnings in external code. 44# 45# Note that this will not silence warnings from external headers #include'd in 46# first-party code. 47common --per_file_copt=external/.*@-w 48common --host_per_file_copt=external/.*@-w 49