From 00725eec8a66efaad2afffb044688709f7c4d55d Mon Sep 17 00:00:00 2001 From: ririyeye <200610237@qq.com> Date: Mon, 2 Sep 2024 15:11:08 +0800 Subject: fix error delete --- xmake/rules/swig/xmake.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmake/rules/swig/xmake.lua b/xmake/rules/swig/xmake.lua index 915d1bd66..7bfb12738 100644 --- a/xmake/rules/swig/xmake.lua +++ b/xmake/rules/swig/xmake.lua @@ -71,7 +71,9 @@ rule("swig.base") for _, sourcefile in ipairs(sourcebatch.sourcefiles) do local scriptdir local fileconfig = target:fileconfig(sourcefile) - + if fileconfig then + scriptdir = fileconfig.scriptdir + end local autogenfiles local autogendir = path.join(target:autogendir(), "rules", "swig") -- cgit v1.3.1