-
Notifications
You must be signed in to change notification settings - Fork 127
Upgrade to Bazel 9.1.1 #3846
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: master
Are you sure you want to change the base?
Upgrade to Bazel 9.1.1 #3846
Changes from all commits
c3475e6
063ec2d
71440c5
1e13c7f
492d0ec
42f0924
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 |
|---|---|---|
|
|
@@ -44,8 +44,9 @@ common --features=external_include_paths | |
| # See https://docs.bazel.build/versions/master/remote-caching.html#disk-cache | ||
| build --disk_cache=~/.cache/thunderbots_bazel_disk_cache | ||
|
|
||
| build --experimental_remote_merkle_tree_cache # partial repo caching optimization | ||
|
Member
Author
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. It appears that this option is no longer supported |
||
| common --incompatible_enable_proto_toolchain_resolution # protoc caching | ||
| common --@protobuf//bazel/toolchains:prefer_prebuilt_protoc | ||
|
Contributor
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'm not sure that the prebuilt binaries will actually work in the nanopb pipeline for compiling the onboard protobufs. This will need to be tested with a real robot to verify, but for some context, this feature is simply the now upstream variant of the alex eagle toolchains protobuf repo. During the Bazel 8 migration, I had attempted to use this optimization (622a89a), but to no avail. Here is the thread I inquired upon the issue with, but to no response aspect-archives/toolchains_protoc#21 I can't quite recall what exactly didn't work, so it is probably a good idea to test on-robot.
Member
Author
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 think I've got the nanopb pipeline using prebuilt protoc now. |
||
| common --incompatible_default_to_explicit_init_py | ||
|
|
||
| # Ensure that we don't accidentally build gRPC | ||
| common --per_file_copt=external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT | ||
|
|
@@ -54,6 +55,7 @@ common --host_per_file_copt=external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUIL | |
| ################# Build Configurations ################# | ||
| # Lock C++ version | ||
| build --cxxopt="-std=c++2a" | ||
|
|
||
| # Warn variable length arrays only when compiling cpp | ||
| build --per_file_copt=.*\.cpp@-Wvla | ||
|
|
||
|
|
@@ -69,7 +71,7 @@ build --incompatible_remove_legacy_whole_archive=False | |
|
|
||
| # Escalate Warnings to fail Compile for Thunderbots code | ||
| build --features=external_include_paths | ||
| build:linux --per_file_copt=proto/.*,proto/message_translation/.*,proto/primitive/.*,software/.*,shared/.*,-external/.*@-Wall,-Wextra,-Wno-unused-parameter,-Wno-deprecated,-Werror,-Wno-deprecated-declarations | ||
| build:linux --per_file_copt=proto/.*,proto/message_translation/.*,proto/primitive/.*,software/.*,shared/.*,-external/.*@-Wall,-Wextra,-Wno-unused-parameter,-Wno-deprecated,-Wno-sign-compare,-Werror,-Wno-deprecated-declarations,-Wno-unused-result,-Wno-missing-field-initializers | ||
| # TODO: #3492 | ||
| # build --per_file_copt=software/.*,shared/.*,-external/.*@-Wconversion | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 8.2.1 | ||
| 9.1.1 |
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.
Seems like protobuf now depends on rules_android, which needs the Android SDK