Skip to content

Commit 0e3fe53

Browse files
authored
Merge pull request #2344 from hzeller/feature-20250128-testing-win-proto
Update to 28.3 protobuf
2 parents 19aee2c + a22f6e3 commit 0e3fe53

File tree

4 files changed

+10
-21
lines changed

4 files changed

+10
-21
lines changed

.bazelrc

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ build --cxxopt="-Wno-unknown-warning-option" --host_cxxopt="-Wno-unknown-warning
3030
build --cxxopt="-Wno-dangling-reference" --host_cxxopt="-Wno-dangling-reference"
3131
# Newer bisons create an unused label.
3232
build --cxxopt="-Wno-unused-label" --host_cxxopt="-Wno-unused-label"
33+
# c++20 warning on protobuf 28.1
34+
build --cxxopt="-Wno-missing-requires" --host_cxxopt="-Wno-missing-requires"
3335

3436
# For 3rd party code: Disable warnings entirely.
3537
# They are not actionable and just create noise.

.github/bin/build-and-test.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,17 @@ case "$MODE" in
128128
test-c++20|test-c++20-clang)
129129
# Compile with C++ 20 to make sure to be compatible with the next version.
130130
if [[ ${MODE} == "test-c++20" ]]; then
131-
# Assignment of 1-char strings: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329
132-
BAZEL_OPTS="${BAZEL_OPTS} --cxxopt=-Wno-restrict"
131+
# Assignment of 1-char strings: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329
132+
BAZEL_OPTS="${BAZEL_OPTS} --cxxopt=-Wno-restrict --cxxopt=-Wno-missing-requires"
133133
fi
134134
bazel test --keep_going --test_output=errors ${BAZEL_OPTS} --cxxopt=-std=c++20 -- ${CHOSEN_TARGETS}
135135
;;
136136

137137
test-c++23|test-c++23-clang)
138138
# Same; c++23
139139
if [[ ${MODE} == "test-c++23" ]]; then
140-
# Assignment of 1-char strings: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329
141-
BAZEL_OPTS="${BAZEL_OPTS} --cxxopt=-Wno-restrict"
140+
# Assignment of 1-char strings: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329
141+
BAZEL_OPTS="${BAZEL_OPTS} --cxxopt=-Wno-restrict --cxxopt=-Wno-missing-requires"
142142
fi
143143
bazel test --keep_going --test_output=errors ${BAZEL_OPTS} --cxxopt=-std=c++2b -- ${CHOSEN_TARGETS}
144144
;;

MODULE.bazel

+3-13
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,11 @@ bazel_dep(name = "rules_m4", version = "0.2.3")
1515
bazel_dep(name = "rules_flex", version = "0.3")
1616
bazel_dep(name = "rules_bison", version = "0.3")
1717

18-
# abseil-cpp and googletest can not be updated beyond the following currently,
19-
# as newer googletest is not compatible with bazel 6 anymore, and abseil-cpp
20-
# depends on it :( -- to support all active bazel's, we're stuck till EOL bazel6
21-
# See https://github.com/chipsalliance/verible/issues/2336
22-
bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True)
23-
18+
# Last versions compatible w/ bazel6 https://github.com/chipsalliance/verible/issues/2336
2419
bazel_dep(name = "abseil-cpp", version = "20240116.2")
20+
bazel_dep(name = "protobuf", version = "28.3")
2521

26-
# Last protobuf version working with windows without strange linking errors.
27-
# This also means that we unfortunately can't use the @protobuf//bazel rules
28-
# but have to use rules_cc and rules_proto.
29-
# TODO: figure out how we can make proto compile beyond 24.4 on Windows.
30-
bazel_dep(name = "protobuf", version = "24.4")
31-
bazel_dep(name = "rules_cc", version = "0.0.9")
32-
bazel_dep(name = "rules_proto", version = "6.0.0-rc2")
22+
bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True)
3323

3424
# To build compilation DB and run build-cleaning
3525
bazel_dep(name = "bant", version = "0.1.13", dev_dependency = True)

third_party/proto/kythe/BUILD

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# Unfortunately, can't use @protobuf//bazel:cc_proto_library.bzl
2-
# here, as this does not seem to work with windows.
3-
load("@rules_cc//cc:defs.bzl", "cc_proto_library")
4-
load("@rules_proto//proto:defs.bzl", "proto_library")
1+
load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")
52

63
package(
74
default_visibility = ["//visibility:public"],

0 commit comments

Comments
 (0)