Skip to content

Commit 66cca5d

Browse files
authored
[grpc-cpp-opentelemetry] build: Bump gRPC version to 1.76.0 and require C++17 (#58)
This PR introduces two key updates: * **gRPC Version Upgrade:** The gRPC version has been upgraded from `1.65.5` to `1.76.0`. * **C++17 Standard:** The project's minimum required C++ standard has been increased from C++14 to C++17.
1 parent 3670a5e commit 66cca5d

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/codelabs/grpc-cpp-opentelemetry/bazel-*

codelabs/grpc-cpp-opentelemetry/.bazelrc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
# Bazel 7 begins to enable module by default which breaks gRPC build.
44
# Therefore, this option is disabled until gRPC works with bzlmod.
55
common --enable_bzlmod=false
6+
common --enable_workspace=true
67

78
# for platform-appropriate cxxopts
89
common --enable_platform_specific_config
910

10-
build:windows --cxxopt='/std:c++14'
11-
build:windows --host_cxxopt='/std:c++14'
12-
build:linux --cxxopt='-std=c++14'
13-
build:linux --host_cxxopt='-std=c++14'
14-
build:macos --cxxopt='-std=c++14'
15-
build:macos --host_cxxopt='-std=c++14'
16-
build:freebsd --cxxopt='-std=c++14'
17-
build:freebsd --host_cxxopt='-std=c++14'
11+
build:windows --cxxopt='/std:c++17'
12+
build:windows --host_cxxopt='/std:c++17'
13+
build:linux --cxxopt='-std=c++17'
14+
build:linux --host_cxxopt='-std=c++17'
15+
build:macos --cxxopt='-std=c++17'
16+
build:macos --host_cxxopt='-std=c++17'
17+
build:freebsd --cxxopt='-std=c++17'
18+
build:freebsd --host_cxxopt='-std=c++17'
1819

1920
# TODO(yashkt): Remove these once upb is upgraded to 25.x or later
2021
build:linux --copt=-Wno-typedef-redefinition

codelabs/grpc-cpp-opentelemetry/WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

55
http_archive(
66
name = "com_github_grpc_grpc",
7-
strip_prefix = "grpc-1.65.5",
7+
strip_prefix = "grpc-1.76.0",
88
urls = [
9-
"https://github.com/grpc/grpc/archive/v1.65.5.tar.gz",
9+
"https://github.com/grpc/grpc/archive/v1.76.0.tar.gz",
1010
],
1111
)
1212

0 commit comments

Comments
 (0)