Skip to content

Commit 978cd23

Browse files
davidocopybara-github
authored andcommitted
Bump c++ standard to c++14 per default
Fixes: #18181. Closes: #18280. Closes #18280. PiperOrigin-RevId: 530246609 Change-Id: I6b49d1bd827e98ca65db87c34c1bb13106ffc232
1 parent 24ea6dc commit 978cd23

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tools/cpp/bsd_cc_toolchain_config.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def _impl(ctx):
160160
),
161161
flag_set(
162162
actions = all_cpp_compile_actions + [ACTION_NAMES.lto_backend],
163-
flag_groups = [flag_group(flags = ["-std=c++0x"])],
163+
flag_groups = [flag_group(flags = ["-std=c++14"])],
164164
),
165165
],
166166
)

tools/cpp/unix_cc_configure.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=g-bad-file-header
22
# Copyright 2016 The Bazel Authors. All rights reserved.
3-
#
3+
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
66
# You may obtain a copy of the License at
@@ -416,7 +416,7 @@ def configure_unix_toolchain(repository_ctx, cpu_value, overriden_tools):
416416
cxx_opts = split_escaped(get_env_var(
417417
repository_ctx,
418418
"BAZEL_CXXOPTS",
419-
"-std=c++0x",
419+
"-std=c++14",
420420
False,
421421
), ":")
422422

tools/cpp/windows_cc_toolchain_config.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ def _impl(ctx):
11841184
ACTION_NAMES.lto_backend,
11851185
ACTION_NAMES.clif_match,
11861186
],
1187-
flag_groups = [flag_group(flags = ["-std=gnu++0x"])],
1187+
flag_groups = [flag_group(flags = ["-std=gnu++14"])],
11881188
),
11891189
],
11901190
)

0 commit comments

Comments
 (0)