Skip to content

Commit 280834d

Browse files
hvadehracopybara-github
authored andcommitted
Break the @bazel_tools//tools/def_parser:def_parser cycle in the default case
This matches the setup used by the native rules: https://github.com/bazelbuild/bazel/blob/eb23cdb2e1813db3add8878dd28e0cd5f38513f9/tools/cpp/BUILD.tools#L56-L76 This is not a complete fix as noted in bazelbuild/bazel#27103 (comment) but at least preserves the old behavior. PiperOrigin-RevId: 816637625 Change-Id: Ib14edf8a591e2f674eb09bce9ffd125b5797d4d9
1 parent 89040ff commit 280834d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

BUILD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ exports_files(["LICENSE"])
99
cc_library(
1010
name = "empty_lib",
1111
# compatible_with = [...]
12+
tags = [
13+
"__DONT_DEPEND_ON_DEF_PARSER__",
14+
],
1215
)
1316

1417
# Label flag for extra libraries to be linked into every binary.
@@ -23,6 +26,9 @@ label_flag(
2326
cc_library(
2427
name = "link_extra_lib",
2528
# compatible_with = [...]
29+
tags = [
30+
"__DONT_DEPEND_ON_DEF_PARSER__",
31+
],
2632
deps = [
2733
":link_extra_libs",
2834
],

0 commit comments

Comments
 (0)