summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/swig/build_module_file.lua2
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