Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump c++ standard to c++14 per default #18280

Closed

Conversation

davido
Copy link
Contributor

@davido davido commented May 2, 2023

Fixes: #18181.

Closes: #18280.

@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Rules-CPP Issues for C++ rules labels May 2, 2023
@davido davido changed the title Bump c++ standard to c++14 pre default Bump c++ standard to c++14 per default May 2, 2023
@davido davido force-pushed the bump-cpp-standard-per-default branch from f52c6c5 to 94ed186 Compare May 2, 2023 05:52
@oquenchil oquenchil self-assigned this May 5, 2023
@oquenchil oquenchil added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels May 5, 2023
@jsharpe
Copy link
Contributor

jsharpe commented May 5, 2023

Why is the c++ standard hardcoded at all? Shouldn't the c++ standard be a feature selectable by the user of the toolchain? The current hardcoding either leads to users relying on ordering of parameters passed to the compiler or encourages vendoring and modification of the toolchain.

keith added a commit to bazelbuild/apple_support that referenced this pull request May 5, 2023
Mirroring bazelbuild/bazel#18280 so it's easier
to swap between the toolchains
@copybara-service copybara-service bot closed this in 978cd23 May 8, 2023
@Pavank1992 Pavank1992 removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label May 8, 2023
@davido davido deleted the bump-cpp-standard-per-default branch May 9, 2023 05:37
werkt added a commit to buildfarm/tools_remote that referenced this pull request May 10, 2023
Bazel 6.2 has introduced warnings promoted to errors via jdk flags that
prevent grpc 1.44.1 from working. Upgrading that to 1.55.1

This introduced an incompatibility with rules_skylib. Upgrading that to
1.4.1 from 0.9.0.
Also incompatible was rules_jvm_external, which was upgraded to 5.2 from
4.2.
Lastly, absl as used by protobuf at the new grpc version is incompatible
with < c++14. Introduced a .bazelrc as a poor excuse for toolchain
injection. Bazel will default to c++14 (from c++0x) with a release that
includes bazelbuild/bazel#18280. An issue to
remove this file will follow.

Tagged the build with .bazelversion to avoid accidental consumption of
incompatible bazels with bazelisk.

Fixes #28
werkt added a commit to buildfarm/tools_remote that referenced this pull request May 10, 2023
Bazel 6.2 has introduced warnings promoted to errors via jdk flags that
prevent grpc 1.44.1 from working. Upgrading that to 1.55.1

This introduced an incompatibility with rules_skylib. Upgrading that to
1.4.1 from 0.9.0.
Also incompatible was rules_jvm_external, which was upgraded to 5.2 from
4.2.
Lastly, absl as used by protobuf at the new grpc version is incompatible
with < c++14. Introduced a .bazelrc as a poor excuse for toolchain
injection. Bazel will default to c++14 (from c++0x) with a release that
includes bazelbuild/bazel#18280. An issue to
remove this file will follow.

Tagged the build with .bazelversion to avoid accidental consumption of
incompatible bazels with bazelisk.

Fixes #28
keith added a commit to bazelbuild/apple_support that referenced this pull request May 15, 2023
Mirroring bazelbuild/bazel#18280 so it's easier
to swap between the toolchains
fweikert pushed a commit to fweikert/bazel that referenced this pull request May 25, 2023
Fixes: bazelbuild#18181.

Closes: bazelbuild#18280.

Closes bazelbuild#18280.

PiperOrigin-RevId: 530246609
Change-Id: I6b49d1bd827e98ca65db87c34c1bb13106ffc232
thii pushed a commit to thii/bazel that referenced this pull request Oct 11, 2023
Fixes: bazelbuild#18181.

Closes: bazelbuild#18280.

Closes bazelbuild#18280.

PiperOrigin-RevId: 530246609
Change-Id: I6b49d1bd827e98ca65db87c34c1bb13106ffc232
(cherry picked from commit 978cd23)
thii pushed a commit to thii/bazel that referenced this pull request Oct 11, 2023
Fixes: bazelbuild#18181.

Closes: bazelbuild#18280.

Closes bazelbuild#18280.

PiperOrigin-RevId: 530246609
Change-Id: I6b49d1bd827e98ca65db87c34c1bb13106ffc232
(cherry picked from commit 978cd23)
keertk pushed a commit that referenced this pull request Oct 16, 2023
Fixes: #18181.

Closes: #18280.

Closes #18280.

PiperOrigin-RevId: 530246609
Change-Id: I6b49d1bd827e98ca65db87c34c1bb13106ffc232 (cherry picked from
commit 978cd23)

Co-authored-by: David Ostrovsky <david@ostrovsky.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-CPP Issues for C++ rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cpp toolchain: stop passing -std=c++0x per default
4 participants