diff options
author | Vinh Tran <vinhdaitran@google.com> | 2022-06-01 16:23:08 -0400 |
---|---|---|
committer | Vinh Tran <vinhdaitran@google.com> | 2022-06-01 16:23:08 -0400 |
commit | 4214327525a9ebcd72fd625c89a08a48f60f0b21 (patch) | |
tree | ce3c245c15a176940ef571ead51b959c5d2ea922 /rules/gensrcs.bzl | |
parent | 5a38a842a26cf6e6a1dd01f5fa92a41ced7c30fd (diff) | |
download | bazel-4214327525a9ebcd72fd625c89a08a48f60f0b21.tar.gz |
Allow gensrcs to accept empty output_extension attribute
When output_extension is empty, default to "". This behavior is
consistent with Soong
Test: b test //build/bazel/rules:gensrcs_tests
Change-Id: I55eaf6c01571eb1f5dc2ecf328b974c447032e64
Diffstat (limited to 'rules/gensrcs.bzl')
-rw-r--r-- | rules/gensrcs.bzl | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/rules/gensrcs.bzl b/rules/gensrcs.bzl index e7e8fa30..13baa881 100644 --- a/rules/gensrcs.bzl +++ b/rules/gensrcs.bzl @@ -65,7 +65,6 @@ gensrcs = rule( doc = "A list of inputs such as source files to process", ), "output_extension": attr.string( - mandatory = True, doc = "The extension that will be substituted for output files", ), "cmd": attr.string( |