File tree 1 file changed +7
-5
lines changed 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,19 @@ common --enable_platform_specific_config
18
18
build --action_env=CC=clang
19
19
build --action_env=CXX=clang++
20
20
21
- # Use the C++17 standard.
21
+ # Use the C++17 standard in a pedantic manner .
22
22
build --cxxopt=-std=c++17
23
- # Warn about the extensions that are not supported in C++17.
24
- # TODO(b/391433873): Turn warnings into errors once existing warnings are fixed.
25
- build --cxxopt=-Wc++17-compat-pedantic
23
+ build --cxxopt=-Wpedantic
24
+ build --cxxopt=-Werror=pedantic
25
+ build --cxxopt=-Wno-error=gcc-compat
26
26
# Required by the cc_fuzztest_grammar_library rule, which uses the
27
27
# "exec configuration" (https://bazel.build/reference/be/general#cross-compilation-considerations).
28
28
# The --cxxopt flag does not apply to the exec configuration, only the
29
29
# --host_cxxopt flag (https://bazel.build/docs/user-manual#host-cxxopt).
30
30
build --host_cxxopt=-std=c++17
31
- build --host_cxxopt=-Wc++17-compat-pedantic
31
+ build --host_cxxopt=-Wpedantic
32
+ build --host_cxxopt=-Werror=pedantic
33
+ build --host_cxxopt=-Wno-error=gcc-compat
32
34
33
35
# Build GoogleTest with ABSL support.
34
36
build --define absl=1
You can’t perform that action at this time.
0 commit comments