-
-
Notifications
You must be signed in to change notification settings - Fork 636
chore(deps): update rules_cc and protobuf versions #3367
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
ccb341d
ae3f847
0cfc663
0512e6c
427f941
fa196a5
58b2ac1
490e7a8
aac440a
1ed0a1c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,13 @@ load("@rules_python//python:repositories.bzl", "py_repositories", "python_regist | |
|
||
py_repositories() | ||
|
||
# Needed for rules_cc 0.2.10 | ||
load("@bazel_features//:deps.bzl", "bazel_features_deps") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of copy/pasting this same setup to every downstream workspace, create a second setup function and load and call that.
which does the 4 lines There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried having a file
but it did not work:
because |
||
bazel_features_deps() | ||
|
||
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo") | ||
compatibility_proxy_repo() | ||
|
||
python_register_toolchains( | ||
name = "python39", | ||
python_version = "3.9", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain a bit more about this? I'm guessing this is coming from protobuf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, for protobuf 33.0 (and its dependency abseil-cpp) C++17 is the minimum supported version (https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md)
I'm trying to add these flags to make it work with Bazel 7 but it is not straightforward as it is still failing for tests on windows (https://buildkite.com/bazel/rules-python-python/builds/13428#0199f84a-0a7c-4ed7-8b30-6ab8ef898f71) where
-std=c++17
is not recognized. Do you have any suggestions for that?