aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2022-08-06 21:47:44 +0200
committerBenjamin Kramer <benny.kra@googlemail.com>2022-08-06 21:48:10 +0200
commit2d2ad02f43bda3629b1063945ac235e67dea79d4 (patch)
treec45d2cc68f699b851eb68210efd398be4000168b
parenta6cb8419b1757380e3c577477fdc2501484a7245 (diff)
LLVM switched to C++17 in b1356504e63ae821cccf1e051a0d2526bdfef2b0
-rw-r--r--utils/bazel/.bazelrc12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/bazel/.bazelrc b/utils/bazel/.bazelrc
index a89cd17955c1..ffb8588a3932 100644
--- a/utils/bazel/.bazelrc
+++ b/utils/bazel/.bazelrc
@@ -31,8 +31,8 @@ build:terminfo_system --repo_env=BAZEL_LLVM_TERMINFO_STRATEGY=system
# Set the default compiler to the `clang` binary on the `PATH`.
build:generic_clang --repo_env=CC=clang
-# C++14 standard version is required.
-build:generic_clang --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
+# C++17 standard version is required.
+build:generic_clang --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
# Use `-Wall` and `-Werror` for Clang.
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
# Set the default compiler to the `gcc` binary on the `PATH`.
build:generic_gcc --repo_env=CC=gcc
-# C++14 standard version is required.
-build:generic_gcc --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
+# C++17 standard version is required.
+build:generic_gcc --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
# Build errors are not a helpful way to enforce deprecation in-repo and it is
# 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
# Generic Windows flags common to both MSVC and Clang.
###############################################################################
-# C++14 standard version is required.
-build:windows --cxxopt=/std:c++14 --host_cxxopt=/std:c++14
+# C++17 standard version is required.
+build:windows --cxxopt=/std:c++17 --host_cxxopt=/std:c++17
# Other generic dialect flags.
build:windows --copt=/Zc:strictStrings --host_copt=/Zc:strictStrings