Skip to content

Commit 6ee4c9b

Browse files
waruqijiangyanan
authored andcommitted
Update proto.lua
1 parent 82e14aa commit 6ee4c9b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

xmake/rules/protobuf/proto.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function buildcmd_pfile(target, batchcmds, sourcefile_proto, sourcekind, opt)
117117
-- @see https://github.com/xmake-io/xmake/issues/3678
118118
autogendir = fileconfig.proto_autogendir
119119
grpc_cpp_plugin = fileconfig.proto_grpc_cpp_plugin
120-
-- custom args, pass through to protoc
120+
-- custom flags, pass through to protoc
121121
proto_flags = fileconfig.proto_flags
122122
end
123123
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)
147147
end
148148

149149
if proto_flags then
150-
if type(proto_flags) == "string" then
151-
table.insert(protoc_args, proto_flags)
152-
else
153-
table.join2(protoc_args, proto_flags)
154-
end
150+
table.join2(protoc_args, proto_flags)
155151
end
156152

157153
-- add commands

0 commit comments

Comments
 (0)