summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA2va <[email protected]>2023-10-13 09:46:39 +0200
committerA2va <[email protected]>2023-10-13 09:46:39 +0200
commit27be8483199557b28424805d8fa17fa98f964175 (patch)
treed6390d0a527467c046610ee706da025d6dfb9a30
parentbf3b4234d48cd8a9ece936886d48f71f66db8a08 (diff)
Improve variable name
-rw-r--r--xmake/rules/protobuf/proto.lua4
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