From 874a065223ebf5e2b6716f01efc3d37dc987c6b9 Mon Sep 17 00:00:00 2001 From: Chi Huu Huynh <73843190+Chi-EEE@users.noreply.github.com> Date: Thu, 23 Nov 2023 09:40:47 +0000 Subject: Fix `rulename` and `sourcekind` --- xmake/rules/protobuf/proto.lua | 4 ++-- 1 file 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 = {} -- cgit v1.3.1