diff options
author | Ulf Adams <ulfjack@google.com> | 2015-08-24 11:07:55 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-08-24 14:13:28 +0000 |
commit | a803e0c91480dacbe1f0cbd40da318357f96881d (patch) | |
tree | 298950a39c483abe4bdbaf8d2a0dc9b75ec238d6 /tools | |
parent | 24fe1f21ba716c17c6604b9d56f4a199852a325a (diff) |
Update Skylark rules to specify their accessed configuration fragments.
We will lock down that only specified fragments may be accessed, but
submitting that is blocked on all existing rules declaring fragments correctly.
--
MOS_MIGRATED_REVID=101352316
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build_rules/rust/rust.bzl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/build_rules/rust/rust.bzl b/tools/build_rules/rust/rust.bzl index 7779ec2d8d..5913f8a3f2 100644 --- a/tools/build_rules/rust/rust.bzl +++ b/tools/build_rules/rust/rust.bzl @@ -276,12 +276,14 @@ rust_library = rule( outputs = { "rust_lib": "lib%{name}.rlib", }, + fragments = ["cpp"], ) rust_binary = rule( _rust_binary_impl, executable = True, attrs = _rust_common_attrs, + fragments = ["cpp"], ) rust_test = rule( @@ -289,4 +291,6 @@ rust_test = rule( executable = True, attrs = _rust_common_attrs, test = True, + fragments = ["cpp"], ) + |