From 27aa8318f17447ef6153f302aa425aaa04fc1caa Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Fri, 15 Nov 2024 19:59:45 +0100 Subject: [PATCH] Try CI flags --- .bazelci/presubmit.yml | 4 ++++ .bazelrc | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 762535f8a..58015f6fd 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -12,6 +12,8 @@ tasks: bazel: 6.5.0 # test minimum supported version of bazel build_targets: - "//..." + build_flags: + - "--per_file_copt=external/.*@-w" test_targets: - "//..." # Nogo includes/excludes doesn't work before bazel 7 @@ -21,6 +23,8 @@ tasks: - "-//tests/runfiles:runfiles_test" # TODO: Investigate why this fails. - "-//tests/core/starlark/cgo:missing_cc_toolchain_explicit_pure_off_test" + test_flags: + - "--per_file_copt=external/.*@-w" ubuntu2004: # enable some unflipped incompatible flags on this platform to ensure we don't regress. build_flags: diff --git a/.bazelrc b/.bazelrc index 0e208b0e6..f8a893abf 100644 --- a/.bazelrc +++ b/.bazelrc @@ -6,9 +6,6 @@ common --enable_platform_specific_config common --noexperimental_enable_bzlmod test --test_output=errors -# Disable warnings in external code. -build --per_file_copt=external/.*@-w - # Go requires a C toolchain that accepts options and emits errors like # gcc or clang. The Go SDK does not support MSVC. build:windows --cpu=x64_windows