diff options
| author | ruki <[email protected]> | 2021-09-27 22:40:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-27 22:40:47 +0800 |
| commit | 383c52d93446a72497b132ff6f38d2ef96817eeb (patch) | |
| tree | 9290553e1f35c4a1c09bdcef9e11c3dfc215e28a /xmake/rules | |
| parent | c223db1bdd7e90d970b378e6d6755e977ceb4c6d (diff) | |
add swigflags
Diffstat (limited to 'xmake/rules')
| -rw-r--r-- | xmake/rules/swig/build_module_file.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/rules/swig/build_module_file.lua b/xmake/rules/swig/build_module_file.lua index a38fb009e..42c9d9238 100644 --- a/xmake/rules/swig/build_module_file.lua +++ b/xmake/rules/swig/build_module_file.lua @@ -38,6 +38,10 @@ function main(target, batchcmds, sourcefile, opt) if opt.sourcekind == "cxx" then table.insert(argv, "-c++") end + local fileconfig = target:fileconfig(sourcefile) + if fileconfig.swigflags then + table.join2(argv, fileconfig.swigflags) + end table.insert(argv, sourcefile) batchcmds:show_progress(opt.progress, "${color.build.object}compiling.swig.%s %s", moduletype, sourcefile) batchcmds:mkdir(path.directory(sourcefile_cx)) |
