Update workspace_deps.bzl protobuf main commit

PiperOrigin-RevId: 479635174
pull/13171/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 3faf958b3d
commit 04363f7bae
  1. 3
      .bazelrc
  2. 2
      .github/workflows/python_tests.yml
  3. 10
      BUILD
  4. 7
      WORKSPACE
  5. 2
      bazel/workspace_deps.bzl
  6. 4
      benchmarks/benchmark.cc
  7. 3
      cmake/make_cmakelists.py
  8. 4
      upb/bindings/lua/BUILD.bazel
  9. 4
      upb/port_def.inc

@ -3,6 +3,9 @@ build --features=-debug_prefix_map_pwd_is_dot
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

@ -129,6 +129,8 @@ jobs:
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

10
BUILD

@ -610,13 +610,13 @@ upb_proto_reflection_library(
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 @@ proto_library(
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(
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(

@ -59,3 +59,10 @@ rules_fuzzing_dependencies()
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"
)

@ -24,7 +24,7 @@ def upb_deps():
_github_archive,
name = "com_google_protobuf",
repo = "https://github.com/protocolbuffers/protobuf",
commit = "5407aa62af5f8d71c344ef10877806232a137991",
commit = "d938afd6e35676f6b8c8012d9eacd1dc0bb693b4",
patches = ["@upb//bazel:protobuf.patch"],
)

@ -169,7 +169,7 @@ static void BM_LoadAdsDescriptor_Proto2(benchmark::State& state) {
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 @@ void BM_Parse_Proto2(benchmark::State& state) {
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");

@ -227,6 +227,9 @@ class WorkspaceFileFunctions(object):
def protobuf_deps(self):
pass
def pip_install(self, **kwargs):
pass
def rules_fuzzing_dependencies(self):
pass

@ -119,11 +119,11 @@ lua_proto_library(
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"],
)

@ -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:

Loading…
Cancel
Save