diff options
| author | Chi Huu Huynh <[email protected]> | 2023-11-23 09:40:47 +0000 |
|---|---|---|
| committer | Chi Huu Huynh <[email protected]> | 2023-11-23 09:40:47 +0000 |
| commit | 874a065223ebf5e2b6716f01efc3d37dc987c6b9 (patch) | |
| tree | 2a2fd9f5285b4975cba6a6f5d6d7df9f96e15977 | |
| parent | 1ba4e562b21ed8f39daa9d407dad42a6de4a7c6c (diff) | |
Fix `rulename` and `sourcekind`
| -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 = {} |
