summaryrefslogtreecommitdiff
path: root/xmake/rules/swig/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/swig/xmake.lua')
-rw-r--r--xmake/rules/swig/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/swig/xmake.lua b/xmake/rules/swig/xmake.lua
index 738cc12fd..29b2673a2 100644
--- a/xmake/rules/swig/xmake.lua
+++ b/xmake/rules/swig/xmake.lua
@@ -70,14 +70,14 @@ rule("swig.base")
rule("swig.c")
set_extensions(".i")
- add_deps("swig.base")
+ add_deps("swig.base", "c.build")
on_buildcmd_file(function (target, batchcmds, sourcefile, opt)
import("build_module_file")(target, batchcmds, sourcefile, table.join({sourcekind = "cc"}, opt))
end)
rule("swig.cpp")
set_extensions(".i")
- add_deps("swig.base")
+ add_deps("swig.base", "c++.build")
on_buildcmd_file(function (target, batchcmds, sourcefile, opt)
import("build_module_file")(target, batchcmds, sourcefile, table.join({sourcekind = "cxx"}, opt))
end)