diff options
| -rw-r--r-- | xmake/rules/swig/xmake.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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") |
