From 9631d553feb6294b432d7350ef0b087ec8aca8de Mon Sep 17 00:00:00 2001
From: Philipp Stephani
Date: Tue, 16 Apr 2024 17:35:18 +0200
Subject: [PATCH] Suppress warnings from external repositories if possible
---
.bazelrc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.bazelrc b/.bazelrc
index 0023bdb2..63847eb3 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -12,6 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+common --enable_platform_specific_config
+
+# Suppress warnings from external repositories if possible.
+build --features=external_include_paths
+build --host_features=external_include_paths
+
+# FIXME: This shouldn’t be necessary. File bug against Bazel.
+build:windows --copts='/external:W3' --host_copts='/external:W3'
+
# Run Pylint by default.
build --aspects='//private:defs.bzl%check_python'
build --output_groups='+check_python'