Skip to content

Commit

Permalink
Add bazel 8 support to pkg_config_repository() (google#1118) (google#…
Browse files Browse the repository at this point in the history
…1144)

bazel 8 set --incompatible_disallow_empty_glob default to True. For
pkg-confg repository, libexec is likely to be empty, so empty should be
allowed there.

PiperOrigin-RevId: 707430069
  • Loading branch information
wengxt authored Dec 18, 2024
1 parent 269f7f4 commit 4c7f048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bazel/pkg_config_repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ cc_library(
"""

EXPORTS_FILES_TEMPLATE = """
exports_files(glob(["libexec/*"]))
exports_files(glob(["libexec/*"], allow_empty=True))
"""

def _exec_pkg_config(repo_ctx, flags):
Expand Down

0 comments on commit 4c7f048

Please sign in to comment.