diff options
| author | ruki <[email protected]> | 2021-01-20 22:40:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-20 22:40:43 +0800 |
| commit | e61c2fc56fc0a807385663824fef1ae6b529f26c (patch) | |
| tree | 747ccddd9350ea7d6f12959d8cd5db106fe0ea90 | |
| parent | d31d03c45624d9acbc832494f71ced055b4e2a07 (diff) | |
revert luarocks
| -rw-r--r-- | xmake/rules/luarocks/module/xmake.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/rules/luarocks/module/xmake.lua b/xmake/rules/luarocks/module/xmake.lua index f4e910132..e74080912 100644 --- a/xmake/rules/luarocks/module/xmake.lua +++ b/xmake/rules/luarocks/module/xmake.lua @@ -43,8 +43,7 @@ rule("luarocks.module") end -- export symbols - local _, toolname = target:tool("cc") - if toolname == "cl" then + if target:is_plat("windows") then local exported_name = target:name():gsub("%.", "_") exported_name = exported_name:match('^[^%-]+%-(.+)$') or exported_name target:add("shflags", "/export:luaopen_" .. exported_name, {force = true}) |
