diff options
| -rw-r--r-- | xmake/rules/protobuf/proto.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/protobuf/proto.lua b/xmake/rules/protobuf/proto.lua index 561526ef1..1124899c0 100644 --- a/xmake/rules/protobuf/proto.lua +++ b/xmake/rules/protobuf/proto.lua @@ -143,8 +143,8 @@ function buildcmd(target, batchcmds, sourcefile_proto, opt, sourcekind) } if grpc_cpp_plugin then - local exe = is_plat("windows") and ".exe" or "" - table.insert(protoc_args, "--plugin=protoc-gen-grpc=" .. grpc_cpp_plugin_bin .. exe) + local extension = target:is_plat("windows") and ".exe" or "" + table.insert(protoc_args, "--plugin=protoc-gen-grpc=" .. grpc_cpp_plugin_bin .. extension) table.insert(protoc_args, path(sourcefile_dir, function (p) return ("--grpc_out=") .. p end)) end |
