[Build] Workaround for upb 24.x warnings (#34200)

This is to address too many warnings coming from upb 24.x

```
In file included from external/upb/upb/mini_table/field.h:32:
external/upb/upb/mini_table/internal/message.h:36:14:
 warning: redefinition of typedef 'upb_Message' is a C11 feature [-Wtypedef-redefinition]
typedef void upb_Message;
             ^
external/upb/upb/message/tagged_ptr.h:40:14: note: previous definition is here
typedef void upb_Message;
             ^
1 warning generated.
```
pull/34205/head
Esun Kim 1 year ago committed by GitHub
parent a35f282d58
commit 395ff71b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      test/distrib/cpp/run_distrib_test_cmake.sh
  2. 3
      test/distrib/cpp/run_distrib_test_cmake_pkgconfig.sh
  3. 6
      tools/bazel.rc

@ -66,7 +66,8 @@ popd
# Get list of submodules from the .gitmodules file since for running "git submodule foreach" # Get list of submodules from the .gitmodules file since for running "git submodule foreach"
# we'd need to be in a git workspace (and that's not the case when running # we'd need to be in a git workspace (and that's not the case when running
# distribtests as a bazel action) # distribtests as a bazel action)
grep 'path = ' .gitmodules | sed 's/^.*path = //' | xargs rm -rf # TODO(veblush): Remove upb exception
grep 'path = ' .gitmodules | sed 's/^.*path = //' | grep -v 'third_party/upb' | xargs rm -rf
# Install gRPC # Install gRPC
mkdir -p "cmake/build" mkdir -p "cmake/build"

@ -70,7 +70,8 @@ popd
# Get list of submodules from the .gitmodules file since for "git submodule foreach" # Get list of submodules from the .gitmodules file since for "git submodule foreach"
# we'd need to be in a git workspace (and that's not the case when running # we'd need to be in a git workspace (and that's not the case when running
# distribtests as a bazel action) # distribtests as a bazel action)
grep 'path = ' .gitmodules | sed 's/^.*path = //' | xargs rm -rf # TODO(veblush): Remove upb exception
grep 'path = ' .gitmodules | sed 's/^.*path = //' | grep -v 'third_party/upb' | xargs rm -rf
# Install gRPC # Install gRPC
# TODO(jtattermusch): avoid the need for setting utf8_range_DIR # TODO(jtattermusch): avoid the need for setting utf8_range_DIR

@ -12,6 +12,12 @@ build:macos --host_cxxopt='-std=c++14'
build:freebsd --cxxopt='-std=c++14' build:freebsd --cxxopt='-std=c++14'
build:freebsd --host_cxxopt='-std=c++14' build:freebsd --host_cxxopt='-std=c++14'
# TODO(veblush): Remove these once upb is upgraded to 25.x or later
build:linux --copt=-Wno-typedef-redefinition
build:linux --host_copt=-Wno-typedef-redefinition
build:macos --copt=-Wno-typedef-redefinition
build:macos --host_copt=-Wno-typedef-redefinition
# Don't trigger --config=<host platform> when cross-compiling. # Don't trigger --config=<host platform> when cross-compiling.
build:android --noenable_platform_specific_config build:android --noenable_platform_specific_config
build:ios --noenable_platform_specific_config build:ios --noenable_platform_specific_config

Loading…
Cancel
Save