From cabbdc39b11aadf421c16b866a0d77a6fe7e6e16 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 21 Mar 2024 16:17:57 -0700 Subject: [PATCH] [bazel] Fix -std=c++14 warning on Windows --- .bazelrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index 5f9e1c0ad5..01a3b4c7bb 100644 --- a/.bazelrc +++ b/.bazelrc @@ -4,11 +4,16 @@ # bazel configurations for running tests under sanitizers. # Based on https://github.com/bazelment/trunk/blob/master/tools/bazel.rc +# Enable automatic configs based on platform +common --enable_platform_specific_config + # Needed by gRPC to build on some platforms. build --copt -DGRPC_BAZEL_BUILD # Set minimum supported C++ version -build --host_cxxopt=-std=c++14 --cxxopt=-std=c++14 +build:macos --host_cxxopt=-std=c++14 --cxxopt=-std=c++14 +build:linux --host_cxxopt=-std=c++14 --cxxopt=-std=c++14 +build:windows --host_cxxopt=/std:c++14 --cxxopt=/std:c++14 # --config=asan : Address Sanitizer. common:asan --copt -DADDRESS_SANITIZER