0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-21 12:39:08 +01:00

SERVER-97327 Use -fdiagnostics-color for clang/gcc in bazel (#29340)

GitOrigin-RevId: 1db4813d49a699df97ec0cd545e60a6a9a4c5f3a
This commit is contained in:
Mathias Stearn 2024-11-19 16:52:03 +01:00 committed by MongoDB Bot
parent 69673af1f4
commit df038bf6d4

View File

@ -2,12 +2,12 @@
BUILD files in the "src/" subtree.
"""
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain")
load("@com_github_grpc_grpc//bazel:generate_cc.bzl", "generate_cc")
load("@com_github_grpc_grpc//bazel:protobuf.bzl", "well_known_proto_libs")
load("@poetry//:dependencies.bzl", "dependency")
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@com_github_grpc_grpc//bazel:generate_cc.bzl", "generate_cc")
load("@com_github_grpc_grpc//bazel:protobuf.bzl", "well_known_proto_libs")
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain")
load(
"//bazel:header_deps.bzl",
"HEADER_DEP_SUFFIX",
@ -614,6 +614,9 @@ GCC_OR_CLANG_GENERAL_COPTS = select({
# Disable TBAA optimization
"-fno-strict-aliasing",
# Show colors even though bazel captures stdout/stderr
"-fdiagnostics-color",
],
"//conditions:default": [],
})