diff options
| author | ruki <[email protected]> | 2021-09-25 00:49:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-25 00:49:34 +0800 |
| commit | 8970563b1478bced1c9550506f96eac0b914696a (patch) | |
| tree | bd03f0a18b3adad09d823e780fd5c79e392df031 | |
| parent | 83a9195621935b1276f4a6d7d904081ab069cfb6 (diff) | |
improve swig binary name
| -rw-r--r-- | xmake/rules/swig/xmake.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/rules/swig/xmake.lua b/xmake/rules/swig/xmake.lua index f4f6bd4ed..28f8e0563 100644 --- a/xmake/rules/swig/xmake.lua +++ b/xmake/rules/swig/xmake.lua @@ -27,10 +27,9 @@ rule("swig.base") on_load(function (target) target:set("kind", "shared") + target:set("prefixname", "_") if target:is_plat("windows") then target:set("extension", ".pyd") - elseif target:is_plat("linux") then - target:set("prefixname", "_") end local scriptfiles = {} for _, sourcebatch in pairs(target:sourcebatches()) do |
