diff options
| author | ruki <[email protected]> | 2025-05-08 21:43:44 +0800 |
|---|---|---|
| committer | jiangyanan <[email protected]> | 2025-05-08 22:49:02 +0800 |
| commit | 6ee4c9b436c94ed8827d63e5a4e3cd91f9d4ad3c (patch) | |
| tree | 9e7fb8a43b6ea81cee5fa3a1da6326131e5600af | |
| parent | 82e14aa3b67bec5f97c9100f4d5c1e63510423b6 (diff) | |
Update proto.lua
| -rw-r--r-- | xmake/rules/protobuf/proto.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/protobuf/proto.lua b/xmake/rules/protobuf/proto.lua index 68f9da886..2649a0586 100644 --- a/xmake/rules/protobuf/proto.lua +++ b/xmake/rules/protobuf/proto.lua @@ -117,7 +117,7 @@ function buildcmd_pfile(target, batchcmds, sourcefile_proto, sourcekind, opt) -- @see https://github.com/xmake-io/xmake/issues/3678 autogendir = fileconfig.proto_autogendir grpc_cpp_plugin = fileconfig.proto_grpc_cpp_plugin - -- custom args, pass through to protoc + -- custom flags, pass through to protoc proto_flags = fileconfig.proto_flags end local rootdir = autogendir and autogendir or path.join(target:autogendir(), "rules", "protobuf") @@ -147,11 +147,7 @@ function buildcmd_pfile(target, batchcmds, sourcefile_proto, sourcekind, opt) end if proto_flags then - if type(proto_flags) == "string" then - table.insert(protoc_args, proto_flags) - else - table.join2(protoc_args, proto_flags) - end + table.join2(protoc_args, proto_flags) end -- add commands |
