diff options
author | 2015-11-26 10:07:32 +0000 | |
---|---|---|
committer | 2015-11-26 13:19:28 +0000 | |
commit | 7b599453389b3a00eebf25c58cde322a0e7bdf02 (patch) | |
tree | b3c5860bf77e7d7665319316701f472c5f345a7e /tools | |
parent | c89366f6d7fe092af74f25949f00ed409a86caab (diff) |
Refactor Skylark rules and attributes in preparation to Skylark aspects.
1. attr.<type> functions return a wrapper object instead of
Attribute.Builder dierctly.
2. RuleClass is created once per the life-time of RuleFunction, during
export
3. Attributes are added to the RuleClass at exporting.
--
MOS_MIGRATED_REVID=108774581
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build_rules/py_rules.bzl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/build_rules/py_rules.bzl b/tools/build_rules/py_rules.bzl index 5ce8a58e3a..d735b392cd 100644 --- a/tools/build_rules/py_rules.bzl +++ b/tools/build_rules/py_rules.bzl @@ -115,6 +115,7 @@ py_binary = rule( py_test = rule( py_binary_impl, + test = True, executable = True, attrs = py_attrs, outputs = py_binary_outputs) |