Skip to content

Commit 00725ee

Browse files
committed
fix error delete
1 parent 5b6a3a3 commit 00725ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xmake/rules/swig/xmake.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ rule("swig.base")
7171
for _, sourcefile in ipairs(sourcebatch.sourcefiles) do
7272
local scriptdir
7373
local fileconfig = target:fileconfig(sourcefile)
74-
74+
if fileconfig then
75+
scriptdir = fileconfig.scriptdir
76+
end
7577
local autogenfiles
7678
local autogendir = path.join(target:autogendir(), "rules", "swig")
7779

0 commit comments

Comments
 (0)