Skip to content

Commit 2d2ad02

Browse files
committed
[bazel] Switch to C++17
LLVM switched to C++17 in b135650
1 parent a6cb841 commit 2d2ad02

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

utils/bazel/.bazelrc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ build:terminfo_system --repo_env=BAZEL_LLVM_TERMINFO_STRATEGY=system
3131
# Set the default compiler to the `clang` binary on the `PATH`.
3232
build:generic_clang --repo_env=CC=clang
3333

34-
# C++14 standard version is required.
35-
build:generic_clang --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
34+
# C++17 standard version is required.
35+
build:generic_clang --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
3636

3737
# Use `-Wall` and `-Werror` for Clang.
3838
build:generic_clang --copt=-Wall --copt=-Werror --host_copt=-Wall --host_copt=-Werror
@@ -56,8 +56,8 @@ build:generic_clang --copt=-Wno-deprecated --host_copt=-Wno-deprecated
5656
# Set the default compiler to the `gcc` binary on the `PATH`.
5757
build:generic_gcc --repo_env=CC=gcc
5858

59-
# C++14 standard version is required.
60-
build:generic_gcc --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
59+
# C++17 standard version is required.
60+
build:generic_gcc --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
6161

6262
# Build errors are not a helpful way to enforce deprecation in-repo and it is
6363
# not the point of the Bazel build to catch usage of deprecated APIs.
@@ -78,8 +78,8 @@ build:generic_gcc --copt=-Werror --host_copt=-Werror
7878
# Generic Windows flags common to both MSVC and Clang.
7979
###############################################################################
8080

81-
# C++14 standard version is required.
82-
build:windows --cxxopt=/std:c++14 --host_cxxopt=/std:c++14
81+
# C++17 standard version is required.
82+
build:windows --cxxopt=/std:c++17 --host_cxxopt=/std:c++17
8383

8484
# Other generic dialect flags.
8585
build:windows --copt=/Zc:strictStrings --host_copt=/Zc:strictStrings

0 commit comments

Comments
 (0)