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 0dc3178ce..0648d6a71 100644 --- a/xmake/rules/protobuf/proto.lua +++ b/xmake/rules/protobuf/proto.lua @@ -271,8 +271,8 @@ function build_cxfiles(target, batchjobs, sourcebatch, opt, sourcekind) -- do build local sourcebatch_cx = { - rulename = "c++.build", - sourcekind = "cxx", + rulename = (sourcekind == "cxx" and "c++" or "c").. ".build", + sourcekind = sourcekind, sourcefiles = {}, objectfiles = {}, dependfiles = {} |
