Skip to content

Commit

Permalink
Depend on native runfiles library where necessary.
Browse files Browse the repository at this point in the history
Starting with Bazel 7, only targets that directly depend on
@bazel_tools//tools/cpp/runfiles have access to the BAZEL_CURRENT_REPOSITORY
preprocessor macro, see bazelbuild/bazel#20388.  We
hard-code local workspace names in some places, so we need that macro if modules
are enabled.
  • Loading branch information
phst committed Dec 11, 2023
1 parent e761332 commit 8e5e8a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elisp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ cc_library(
deps = [
":platform",
":process",
"@bazel_tools//tools/cpp/runfiles",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
Expand Down Expand Up @@ -214,6 +215,7 @@ cc_test(
":binary",
":platform",
":process",
"@bazel_tools//tools/cpp/runfiles",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
Expand Down Expand Up @@ -249,6 +251,7 @@ cc_library(
deps = [
":platform",
":process",
"@bazel_tools//tools/cpp/runfiles",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
Expand Down

0 comments on commit 8e5e8a5

Please sign in to comment.