diff options
| author | ririyeye <[email protected]> | 2024-09-02 15:11:08 +0800 |
|---|---|---|
| committer | ririyeye <[email protected]> | 2024-09-02 15:11:08 +0800 |
| commit | 00725eec8a66efaad2afffb044688709f7c4d55d (patch) | |
| tree | 2eb838fa7727d14fb3441222419b9f563a3d555a /xmake/rules | |
| parent | 5b6a3a3d52ac17ddb01840c8d1d9c7da7d73c2a5 (diff) | |
fix error delete
Diffstat (limited to 'xmake/rules')
| -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") |
