Make upb compatible with `--incompatible_disallow_empty_glob`

This will allow us to run all the upb tests from the protobuf repo, which
already uses this flag. I just had to remove a couple glob patterns that did
not match any files.

PiperOrigin-RevId: 559434154
pull/13675/head^2
Adam Cozzette 1 year ago committed by Copybara-Service
parent 94c4c320c5
commit 00efe9fc1d
  1. 3
      .bazelrc
  2. 1
      BUILD
  3. 1
      upb/port/BUILD

@ -5,6 +5,9 @@ build --features=-debug_prefix_map_pwd_is_dot
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
build:cpp17_msvc --cxxopt=/std:c++17 --host_cxxopt=/std:c++17
# Disallow empty globs
build: --incompatible_disallow_empty_glob
# Use our custom-configured c++ toolchain.
build:m32 --copt=-m32 --linkopt=-m32

@ -691,7 +691,6 @@ filegroup(
"upb/**/*.c",
"upb/**/*.h",
"upb/**/*.hpp",
"upb/**/*.inc",
],
exclude = [
"upb/**/conformance_upb.c",

@ -50,7 +50,6 @@ filegroup(
name = "source_files",
srcs = glob(
[
"**/*.c",
"**/*.h",
"**/*.inc",
],

Loading…
Cancel
Save