diff options
| -rw-r--r-- | xmake/rules/swig/build_module_file.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/swig/build_module_file.lua b/xmake/rules/swig/build_module_file.lua index 2599834ae..2eecd5fb0 100644 --- a/xmake/rules/swig/build_module_file.lua +++ b/xmake/rules/swig/build_module_file.lua @@ -39,7 +39,7 @@ function main(target, batchcmds, sourcefile, opt) table.insert(argv, "-c++") end local fileconfig = target:fileconfig(sourcefile) - if fileconfig.swigflags then + if fileconfig and fileconfig.swigflags then table.join2(argv, fileconfig.swigflags) end |
