Skip to content

Commit d6efa76

Browse files
authored
ci: enable C++14 for more 'host' targets (googleapis#10606)
I missed the majority of the `.bazelrc` files.
1 parent 2edf5a7 commit d6efa76

101 files changed

Lines changed: 404 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ci/verify_current_targets/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --enable_platform_specific_config=true
2424
# disables C++14 features, even if the compilers defaults to C++ >= 14
2525
build:linux --cxxopt=-std=c++14
2626
build:macos --cxxopt=-std=c++14
27+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
28+
# targets, such as protoc and the grpc plugin.
29+
build:linux --host_cxxopt=-std=c++14
30+
build:macos --host_cxxopt=-std=c++14
2731

2832
# Do not create the convenience links. They are inconvenient when the build
2933
# runs inside a docker image or if one builds a quickstart and then builds

ci/verify_deprecated_targets/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --enable_platform_specific_config=true
2424
# disables C++14 features, even if the compilers defaults to C++ >= 14
2525
build:linux --cxxopt=-std=c++14
2626
build:macos --cxxopt=-std=c++14
27+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
28+
# targets, such as protoc and the grpc plugin.
29+
build:linux --host_cxxopt=-std=c++14
30+
build:macos --host_cxxopt=-std=c++14
2731

2832
# Do not create the convenience links. They are inconvenient when the build
2933
# runs inside a docker image or if one builds a quickstart and then builds

generator/internal/scaffold_generator.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,10 @@ build --enable_platform_specific_config=true
10771077
# disables C++14 features, even if the compilers defaults to C++ >= 14
10781078
build:linux --cxxopt=-std=c++14
10791079
build:macos --cxxopt=-std=c++14
1080+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
1081+
# targets, such as protoc and the grpc plugin.
1082+
build:linux --host_cxxopt=-std=c++14
1083+
build:macos --host_cxxopt=-std=c++14
10801084
10811085
# Do not create the convenience links. They are inconvenient when the build
10821086
# runs inside a docker image or if one builds a quickstart and then builds

google/cloud/accessapproval/quickstart/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --enable_platform_specific_config=true
2424
# disables C++14 features, even if the compilers defaults to C++ >= 14
2525
build:linux --cxxopt=-std=c++14
2626
build:macos --cxxopt=-std=c++14
27+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
28+
# targets, such as protoc and the grpc plugin.
29+
build:linux --host_cxxopt=-std=c++14
30+
build:macos --host_cxxopt=-std=c++14
2731

2832
# Do not create the convenience links. They are inconvenient when the build
2933
# runs inside a docker image or if one builds a quickstart and then builds

google/cloud/accesscontextmanager/quickstart/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --enable_platform_specific_config=true
2424
# disables C++14 features, even if the compilers defaults to C++ >= 14
2525
build:linux --cxxopt=-std=c++14
2626
build:macos --cxxopt=-std=c++14
27+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
28+
# targets, such as protoc and the grpc plugin.
29+
build:linux --host_cxxopt=-std=c++14
30+
build:macos --host_cxxopt=-std=c++14
2731

2832
# Do not create the convenience links. They are inconvenient when the build
2933
# runs inside a docker image or if one builds a quickstart and then builds

google/cloud/apigateway/quickstart/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --enable_platform_specific_config=true
2424
# disables C++14 features, even if the compilers defaults to C++ >= 14
2525
build:linux --cxxopt=-std=c++14
2626
build:macos --cxxopt=-std=c++14
27+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
28+
# targets, such as protoc and the grpc plugin.
29+
build:linux --host_cxxopt=-std=c++14
30+
build:macos --host_cxxopt=-std=c++14
2731

2832
# Do not create the convenience links. They are inconvenient when the build
2933
# runs inside a docker image or if one builds a quickstart and then builds

google/cloud/apigeeconnect/quickstart/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --enable_platform_specific_config=true
2424
# disables C++14 features, even if the compilers defaults to C++ >= 14
2525
build:linux --cxxopt=-std=c++14
2626
build:macos --cxxopt=-std=c++14
27+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
28+
# targets, such as protoc and the grpc plugin.
29+
build:linux --host_cxxopt=-std=c++14
30+
build:macos --host_cxxopt=-std=c++14
2731

2832
# Do not create the convenience links. They are inconvenient when the build
2933
# runs inside a docker image or if one builds a quickstart and then builds

google/cloud/apikeys/quickstart/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --enable_platform_specific_config=true
2424
# disables C++14 features, even if the compilers defaults to C++ >= 14
2525
build:linux --cxxopt=-std=c++14
2626
build:macos --cxxopt=-std=c++14
27+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
28+
# targets, such as protoc and the grpc plugin.
29+
build:linux --host_cxxopt=-std=c++14
30+
build:macos --host_cxxopt=-std=c++14
2731

2832
# Do not create the convenience links. They are inconvenient when the build
2933
# runs inside a docker image or if one builds a quickstart and then builds

google/cloud/appengine/quickstart/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --enable_platform_specific_config=true
2424
# disables C++14 features, even if the compilers defaults to C++ >= 14
2525
build:linux --cxxopt=-std=c++14
2626
build:macos --cxxopt=-std=c++14
27+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
28+
# targets, such as protoc and the grpc plugin.
29+
build:linux --host_cxxopt=-std=c++14
30+
build:macos --host_cxxopt=-std=c++14
2731

2832
# Do not create the convenience links. They are inconvenient when the build
2933
# runs inside a docker image or if one builds a quickstart and then builds

google/cloud/artifactregistry/quickstart/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --enable_platform_specific_config=true
2424
# disables C++14 features, even if the compilers defaults to C++ >= 14
2525
build:linux --cxxopt=-std=c++14
2626
build:macos --cxxopt=-std=c++14
27+
# Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
28+
# targets, such as protoc and the grpc plugin.
29+
build:linux --host_cxxopt=-std=c++14
30+
build:macos --host_cxxopt=-std=c++14
2731

2832
# Do not create the convenience links. They are inconvenient when the build
2933
# runs inside a docker image or if one builds a quickstart and then builds

0 commit comments

Comments
 (0)