summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorruki <[email protected]>2024-03-21 22:29:54 +0800
committerruki <[email protected]>2024-03-21 22:29:54 +0800
commitbe186a5aaa7e23bbd6305fa05cedb11b06ac8feb (patch)
tree8bb8fc7c6fc296febf2a969ad652b2746a676d82 /xmake
parent9936e7c854e18b0e02da137e056047c104e045a0 (diff)
fix swig flags
Diffstat (limited to 'xmake')
-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