Skip to content

Commit

Permalink
Patch upb to fix build error with gcc 10
Browse files Browse the repository at this point in the history
Fixes bazelbuild#12056

This is a replacement of bazelbuild#12077 after an unsuccessful attempt to upgrade upb version.

Closes bazelbuild#12083.

PiperOrigin-RevId: 331145667
  • Loading branch information
meteorcloudy authored and coeuvre committed Oct 22, 2020
1 parent fc141ac commit 15c416a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,21 @@ register_local_rc_exe_toolchains()

register_toolchains("//src/main/res:empty_rc_toolchain")

# Patch upb for grpc due to https://github.com/bazelbuild/bazel/issues/12056
# TODO: Remove the following after upgrading grpc to a newer version that's not
# affected by this issue.
http_archive(
name = "upb",
sha256 = "61d0417abd60e65ed589c9deee7c124fe76a4106831f6ad39464e1525cef1454",
patches = ["//third_party/grpc:upb_gcc10_fix.patch"],
patch_args = ["-p1"],
strip_prefix = "upb-9effcbcb27f0a665f9f345030188c0b291e32482",
urls = [
"https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
"https://github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
],
)

http_archive(
name = "com_github_grpc_grpc",
urls = [
Expand Down

0 comments on commit 15c416a

Please sign in to comment.