aboutsummaryrefslogtreecommitdiffhomepage
path: root/bazel
diff options
context:
space:
mode:
authorGravatar Mahak Mukhi <mmukhi@google.com>2017-04-16 20:44:04 -0700
committerGravatar Mahak Mukhi <mmukhi@google.com>2017-04-16 20:51:30 -0700
commit459da91519078f0ab46206febcc22d5d223c3781 (patch)
tree77526487d619ab886e25fe90c9f953801bb56eab /bazel
parenta68829023c4d20767938a9e2156bab1fe83b082a (diff)
fixing bug
Diffstat (limited to 'bazel')
-rw-r--r--bazel/generate_cc.bzl6
1 files changed, 3 insertions, 3 deletions
diff --git a/bazel/generate_cc.bzl b/bazel/generate_cc.bzl
index dac76f67f1..72fc6093f8 100644
--- a/bazel/generate_cc.bzl
+++ b/bazel/generate_cc.bzl
@@ -23,10 +23,10 @@ def generate_cc_impl(ctx):
arguments = []
if ctx.executable.plugin:
arguments += ["--plugin=protoc-gen-PLUGIN=" + ctx.executable.plugin.path]
- gen_mock = ""
+ flags = list(ctx.attr.flags)
if ctx.attr.generate_mock:
- gen_mock = ",generate_mock_code=true"
- arguments += ["--PLUGIN_out=" + gen_mock + ",".join(ctx.attr.flags) + ":" + dir_out]
+ flags.append("generate_mock_code=true")
+ arguments += ["--PLUGIN_out=" + ",".join(flags) + ":" + dir_out]
additional_input = [ctx.executable.plugin]
else:
arguments += ["--cpp_out=" + ",".join(ctx.attr.flags) + ":" + dir_out]