aboutsummaryrefslogtreecommitdiff
path: root/rules/gensrcs.bzl
diff options
context:
space:
mode:
authorVinh Tran <vinhdaitran@google.com>2022-06-01 16:23:08 -0400
committerVinh Tran <vinhdaitran@google.com>2022-06-01 16:23:08 -0400
commit4214327525a9ebcd72fd625c89a08a48f60f0b21 (patch)
treece3c245c15a176940ef571ead51b959c5d2ea922 /rules/gensrcs.bzl
parent5a38a842a26cf6e6a1dd01f5fa92a41ced7c30fd (diff)
downloadbazel-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.bzl1
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(