diff options
author | Googler <noreply@google.com> | 2017-02-03 21:15:50 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2017-02-06 19:35:45 +0000 |
commit | a6f42024eb4d7963da56caf2fd133126968dad94 (patch) | |
tree | e118599628021c0db09314d99436c5efd51fa811 /tools/ide | |
parent | c701e67def4836db11a4cbdc189dfc542748f8ac (diff) |
Add "no-ide" tag to suppress rule in IntelliJ.
--
PiperOrigin-RevId: 146508452
MOS_MIGRATED_REVID=146508452
Diffstat (limited to 'tools/ide')
-rw-r--r-- | tools/ide/intellij_info_impl.bzl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/ide/intellij_info_impl.bzl b/tools/ide/intellij_info_impl.bzl index 8bcb7ba725..7bb1f8763c 100644 --- a/tools/ide/intellij_info_impl.bzl +++ b/tools/ide/intellij_info_impl.bzl @@ -439,6 +439,10 @@ def build_java_toolchain_ide_info(target): def intellij_info_aspect_impl(target, ctx, semantics): """Aspect implementation function.""" + tags = ctx.rule.attr.tags + if "no-ide" in tags: + return struct() + rule_attrs = ctx.rule.attr # Collect direct dependencies @@ -520,7 +524,7 @@ def intellij_info_aspect_impl(target, ctx, semantics): c_toolchain_ide_info = c_toolchain_ide_info, java_ide_info = java_ide_info, android_ide_info = android_ide_info, - tags = ctx.rule.attr.tags, + tags = tags, test_info = test_info, java_toolchain_ide_info = java_toolchain_ide_info, py_ide_info = py_ide_info, |