Skip to content

Commit

Permalink
bazel: Clean up empty globs
Browse files Browse the repository at this point in the history
Cleans up uses of `glob()` that were sometimes empty to make Pigweed
behave better with --incompatible_disallow_empty_glob.

Bug: b/372510795
Change-Id: Ia7c4ec016243facf188099afbd6d9ab2266231bc
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/256833
Docs-Not-Needed: Armando Montanez <[email protected]>
Pigweed-Auto-Submit: Armando Montanez <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
Reviewed-by: Ted Pudlik <[email protected]>
Lint: Lint 🤖 <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
  • Loading branch information
armandomontanez authored and CQ Bot Account committed Dec 30, 2024
1 parent 256d1ec commit bc6e04c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 0 additions & 8 deletions pw_protobuf/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,6 @@ filegroup(
],
)

# TODO(frolv): Figure out what to do about size reports in Bazel.
filegroup(
name = "size_reports",
srcs = glob([
"size_report/*.cc",
]),
)

filegroup(
name = "doxygen",
srcs = [
Expand Down
6 changes: 5 additions & 1 deletion pw_toolchain/rust/rust_toolchain.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ filegroup(

filegroup(
name = "rustc_lib",
srcs = glob(["lib/*.so"]),
srcs = glob(
["lib/*.so"],
# For non-linux operating systems, this comes up empty.
allow_empty = True,
),
visibility = ["//visibility:public"],
)

Expand Down
3 changes: 3 additions & 0 deletions third_party/stm32cube/cmsis_core.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ cc_library(
"Include/*.h",
"Include/DSP/Include/*.h",
],
# Some include patterns come up blank, but exist for forward/backwards
# compatibility.
allow_empty = True,
),
includes = [
"Include",
Expand Down

0 comments on commit bc6e04c

Please sign in to comment.