diff --git a/bazel/example/using-bzlmod/.bazelrc b/bazel/example/using-bzlmod/.bazelrc index decbefb7..0607ee01 100644 --- a/bazel/example/using-bzlmod/.bazelrc +++ b/bazel/example/using-bzlmod/.bazelrc @@ -2,6 +2,6 @@ common --enable_bzlmod common --noenable_workspace -# Use C++14 (required for recent gRPC versions). -build --cxxopt=-std=c++14 -build --host_cxxopt=-std=c++14 +# Use C++17 (required for recent gRPC versions). +build --cxxopt=-std=c++17 +build --host_cxxopt=-std=c++17 diff --git a/bazel/example/using-workspace/.bazelrc b/bazel/example/using-workspace/.bazelrc index 0f20b823..8b273fe2 100644 --- a/bazel/example/using-workspace/.bazelrc +++ b/bazel/example/using-workspace/.bazelrc @@ -2,6 +2,6 @@ common --enable_workspace common --noenable_bzlmod -# Use C++14 (required for recent gRPC versions). -build --cxxopt=-std=c++14 -build --host_cxxopt=-std=c++14 +# Use C++17 (required for recent gRPC versions). +build --cxxopt=-std=c++17 +build --host_cxxopt=-std=c++17 diff --git a/proto/.bazelrc b/proto/.bazelrc index decbefb7..0607ee01 100644 --- a/proto/.bazelrc +++ b/proto/.bazelrc @@ -2,6 +2,6 @@ common --enable_bzlmod common --noenable_workspace -# Use C++14 (required for recent gRPC versions). -build --cxxopt=-std=c++14 -build --host_cxxopt=-std=c++14 +# Use C++17 (required for recent gRPC versions). +build --cxxopt=-std=c++17 +build --host_cxxopt=-std=c++17