Update workspace_deps.bzl protobuf main commit PiperOrigin-RevId: 479635174
diff --git a/.bazelrc b/.bazelrc index 23492c0..4d8efe7 100644 --- a/.bazelrc +++ b/.bazelrc
@@ -3,6 +3,9 @@ build --extra_toolchains=@system_python//:python_toolchain +# Pin to C++14 +build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 + # Use our custom-configured c++ toolchain. build:m32 --copt=-m32 --linkopt=-m32
diff --git a/.github/workflows/python_tests.yml b/.github/workflows/python_tests.yml index 68b7ac4..f0bbcc2 100644 --- a/.github/workflows/python_tests.yml +++ b/.github/workflows/python_tests.yml
@@ -129,6 +129,8 @@ python -m venv env source env/bin/activate echo "VIRTUAL ENV:" $VIRTUAL_ENV + - name: Install numpy + run: pip install numpy - name: Install Protobuf Wheels run: pip install -vvv --no-index --find-links wheels protobuf protobuftests - name: Run the unit tests
diff --git a/BUILD b/BUILD index 197cb8b..b510096 100644 --- a/BUILD +++ b/BUILD
@@ -610,13 +610,13 @@ upb_proto_library( name = "test_messages_proto2_proto_upb", testonly = 1, - deps = ["@com_google_protobuf//:test_messages_proto2_proto"], + deps = ["@com_google_protobuf//src/google/protobuf:test_messages_proto2_proto"], ) upb_proto_library( name = "test_messages_proto3_proto_upb", testonly = 1, - deps = ["@com_google_protobuf//:test_messages_proto3_proto"], + deps = ["@com_google_protobuf//src/google/protobuf:test_messages_proto3_proto"], ) proto_library( @@ -685,7 +685,7 @@ name = "msg_test_proto", testonly = 1, srcs = ["upb/msg_test.proto"], - deps = ["@com_google_protobuf//:test_messages_proto3_proto"], + deps = ["@com_google_protobuf//src/google/protobuf:test_messages_proto3_proto"], ) upb_proto_library( @@ -817,13 +817,13 @@ upb_proto_reflection_library( name = "test_messages_proto2_upbdefs", testonly = 1, - deps = ["@com_google_protobuf//:test_messages_proto2_proto"], + deps = ["@com_google_protobuf//src/google/protobuf:test_messages_proto2_proto"], ) upb_proto_reflection_library( name = "test_messages_proto3_upbdefs", testonly = 1, - deps = ["@com_google_protobuf//:test_messages_proto3_proto"], + deps = ["@com_google_protobuf//src/google/protobuf:test_messages_proto3_proto"], ) cc_binary(
diff --git a/WORKSPACE b/WORKSPACE index 6054b01..af72add 100644 --- a/WORKSPACE +++ b/WORKSPACE
@@ -59,3 +59,10 @@ load("@rules_fuzzing//fuzzing:init.bzl", "rules_fuzzing_init") rules_fuzzing_init() + +load("@rules_python//python:pip.bzl", "pip_install") + +pip_install( + name="pip_deps", + requirements = "@com_google_protobuf//python:requirements.txt" +)
diff --git a/bazel/workspace_deps.bzl b/bazel/workspace_deps.bzl index 0f13d13..84ad53a 100644 --- a/bazel/workspace_deps.bzl +++ b/bazel/workspace_deps.bzl
@@ -24,7 +24,7 @@ _github_archive, name = "com_google_protobuf", repo = "https://github.com/protocolbuffers/protobuf", - commit = "5407aa62af5f8d71c344ef10877806232a137991", + commit = "d938afd6e35676f6b8c8012d9eacd1dc0bb693b4", patches = ["@upb//bazel:protobuf.patch"], )
diff --git a/benchmarks/benchmark.cc b/benchmarks/benchmark.cc index e4c3a0c..b435604 100644 --- a/benchmarks/benchmark.cc +++ b/benchmarks/benchmark.cc
@@ -169,7 +169,7 @@ protobuf::Arena arena; protobuf::DescriptorPool pool; for (auto file : serialized_files) { - protobuf::StringPiece input(file.data, file.size); + absl::string_view input(file.data, file.size); auto proto = protobuf::Arena::CreateMessage<protobuf::FileDescriptorProto>(&arena); bool ok = proto->ParseFrom<protobuf::MessageLite::kMergePartial>(input) && @@ -284,7 +284,7 @@ for (auto _ : state) { Proto2Factory<AMode, P> proto_factory; auto proto = proto_factory.GetProto(); - protobuf::StringPiece input(descriptor.data, descriptor.size); + absl::string_view input(descriptor.data, descriptor.size); bool ok = proto->template ParseFrom<kParseFlags>(input); if (!ok) { printf("Failed to parse.\n");
diff --git a/cmake/make_cmakelists.py b/cmake/make_cmakelists.py index 9aff9e4..2d5901e 100755 --- a/cmake/make_cmakelists.py +++ b/cmake/make_cmakelists.py
@@ -227,6 +227,9 @@ def protobuf_deps(self): pass + def pip_install(self, **kwargs): + pass + def rules_fuzzing_dependencies(self): pass
diff --git a/upb/bindings/lua/BUILD.bazel b/upb/bindings/lua/BUILD.bazel index ccdd741..ec3a597 100644 --- a/upb/bindings/lua/BUILD.bazel +++ b/upb/bindings/lua/BUILD.bazel
@@ -119,11 +119,11 @@ lua_proto_library( name = "test_messages_proto3_proto_lua", testonly = 1, - deps = ["@com_google_protobuf//:test_messages_proto3_proto"], + deps = ["@com_google_protobuf//src/google/protobuf:test_messages_proto3_proto"], ) lua_proto_library( name = "test_messages_proto2_proto_lua", testonly = 1, - deps = ["@com_google_protobuf//:test_messages_proto2_proto"], + deps = ["@com_google_protobuf//src/google/protobuf:test_messages_proto2_proto"], )
diff --git a/upb/port_def.inc b/upb/port_def.inc index 25efa79..f335737 100644 --- a/upb/port_def.inc +++ b/upb/port_def.inc
@@ -49,9 +49,9 @@ */ #if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ - (defined(__cplusplus) && __cplusplus >= 201103L) || \ + (defined(__cplusplus) && __cplusplus >= 201402L) || \ (defined(_MSC_VER) && _MSC_VER >= 1900)) -#error upb requires C99 or C++11 or MSVC >= 2015. +#error upb requires C99 or C++14 or MSVC >= 2015. #endif // Portable check for GCC minimum version: