1818# Use host-OS-specific config lines from bazelrc files.
1919build --enable_platform_specific_config=true
2020
21- # The project requires C++ >= 14. By default Bazel adds `-std=c++0x` which
22- # disables C++14 features, even if the compilers defaults to C++ >= 14
23- build:linux --cxxopt=-std=c++14
24- build:macos --cxxopt=-std=c++14
25- # Protobuf and gRPC require (or soon will require) C++14 to compile the "host"
21+ build --features=external_include_paths
22+ build --cxxopt=-Wno-private-header
23+
24+ # The project requires C++ >= 17.
25+ build:linux --cxxopt=-std=c++17
26+ build:macos --cxxopt=-std=c++17
27+ # Protobuf and gRPC require C++17 to compile the "host"
2628# targets, such as protoc and the grpc plugin.
27- build:linux --host_cxxopt=-std=c++14
28- build:macos --host_cxxopt=-std=c++14
29+ build:linux --host_cxxopt=-std=c++17
30+ build:macos --host_cxxopt=-std=c++17
2931
3032# Do not create the convenience links. They are inconvenient when the build
3133# runs inside a docker image or if one builds a quickstart and then builds
@@ -47,9 +49,6 @@ build --experimental_ui_max_stdouterr_bytes=-1
4749# in a random order to help expose undesirable interdependencies.
4850test --test_env=GTEST_SHUFFLE --test_env=GTEST_RANDOM_SEED
4951
50- # By default, build the library with OpenTelemetry
51- build --//:enable_opentelemetry
52-
5352# Don't show warnings when building external dependencies. This still shows
5453# warnings when using these dependencies (say in headers).
5554build --output_filter='^//((?!(external):).)*$'
@@ -70,6 +69,8 @@ build:sanitizer --strip=never
7069build:sanitizer --copt=-Og
7170build:sanitizer --copt=-g
7271build:sanitizer --copt=-fno-omit-frame-pointer
72+ #build:sanitizer --features=external_include_paths
73+
7374
7475# --config asan: Address Sanitizer
7576build:asan --config=sanitizer
@@ -102,6 +103,8 @@ build:ubsan --copt=-DCURL_STRICTER
102103build:ubsan --linkopt=-fsanitize=undefined
103104build:ubsan --linkopt=-fsanitize-link-c++-runtime
104105build:ubsan --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1
106+ #build:ubsan --features=external_include_paths
107+
105108
106109# --config xsan: Runs misc. sanitizers that aren't covered elsewhere.
107110build:xsan --config=sanitizer
@@ -128,3 +131,4 @@ build:msan --linkopt=-L/usr/lib/x86_64-unknown-linux-gnu
128131
129132# --config otel2: Open Telemetery ABI version 2
130133build:otel2 --cxxopt=-DOPENTELEMETRY_ABI_VERSION_NO=2
134+ build:otel2 --@opentelemetry-cpp//api:abi_version_no=2
0 commit comments