Skip to content

Commit

Permalink
Update C++ standard default to 14
Browse files Browse the repository at this point in the history
Mirroring bazelbuild/bazel#18280 so it's easier
to swap between the toolchains
  • Loading branch information
keith committed May 5, 2023
1 parent 38eba0f commit 50922e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crosstool/cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def _impl(ctx):
"-target",
target_system_name,
"-stdlib=libc++",
"-std=gnu++11",
"-std=gnu++14",
],
),
],
Expand Down Expand Up @@ -1989,7 +1989,7 @@ def _impl(ctx):
ACTION_NAMES.lto_backend,
ACTION_NAMES.clif_match,
],
flag_groups = [flag_group(flags = ["-std=c++11"])],
flag_groups = [flag_group(flags = ["-std=c++14"])],
),
],
)
Expand Down

0 comments on commit 50922e1

Please sign in to comment.