mirror of https://github.com/bazelbuild/rules_cc
.../BUILD: fix build file/module bugs (#18)
Change this pattern if foo [not] in native.existing_rules(): to if [not] native.existing_rule(foo): for efficiency. PiperOrigin-RevId: 241954724
This commit is contained in:
parent
951df6a496
commit
9667b3dd9a
|
@ -13,5 +13,5 @@ def rules_cc_deps():
|
|||
)
|
||||
|
||||
def _maybe(repo_rule, name, **kwargs):
|
||||
if name not in native.existing_rules():
|
||||
if not native.existing_rule(name):
|
||||
repo_rule(name = name, **kwargs)
|
||||
|
|
Loading…
Reference in New Issue