diff options
author | 2022-12-15 13:34:43 -0800 | |
---|---|---|
committer | 2022-12-15 13:35:26 -0800 | |
commit | e2416566660e1892274a56b34504b8b8c6c76101 (patch) | |
tree | ab8049fd0e7d3926caf8af274515999bff47f46a /absl/copts/configure_copts.bzl | |
parent | 3fe1e96ea9da8cf27589dfa988e4fe2eb220fccf (diff) |
Add the ability to turn on warnings that get disabled in tests
in GCC and LLVM build configs
This was accomplished by adding GccStyleFilterAndCombine() in copts.py
Previously, if we had a default warning of the form -Wwarning, adding
-Wno-warning to the list of test warnings would just add conflicting
flags. We now filter -Wwarning if -Wno-warning is added to the test warnings.
PiperOrigin-RevId: 495683815
Change-Id: I5dfd8a30b0be09d6b48237f61d598230ab9027db
Diffstat (limited to 'absl/copts/configure_copts.bzl')
-rw-r--r-- | absl/copts/configure_copts.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/copts/configure_copts.bzl b/absl/copts/configure_copts.bzl index c5e57b38..ca5f26da 100644 --- a/absl/copts/configure_copts.bzl +++ b/absl/copts/configure_copts.bzl @@ -29,7 +29,7 @@ ABSL_DEFAULT_COPTS = select({ "//conditions:default": ABSL_GCC_FLAGS, }) -ABSL_TEST_COPTS = ABSL_DEFAULT_COPTS + select({ +ABSL_TEST_COPTS = select({ "//absl:msvc_compiler": ABSL_MSVC_TEST_FLAGS, "//absl:clang-cl_compiler": ABSL_CLANG_CL_TEST_FLAGS, "//absl:clang_compiler": ABSL_LLVM_TEST_FLAGS, |