Skip to content

Commit

Permalink
fixing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MakMukhi committed Apr 17, 2017
1 parent a688290 commit 459da91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bazel/generate_cc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 459da91

Please sign in to comment.