improve xmake.lua

This commit is contained in:
ruki
2020-05-11 22:45:17 +08:00
parent f622aa3e67
commit 0c4666c24f

View File

@@ -105,7 +105,7 @@ target("ltui")
-- add lua and do not link it on linux and macos
local lualinks = nil
if is_plat("macosx") then
if is_plat("macosx", "linux", "bsd") then
lualinks = {}
end
if has_config("luajit") then
@@ -126,6 +126,8 @@ target("ltui")
-- dynamic lookup liblua symbols
if is_plat("macosx") then
add_shflags("-undefined dynamic_lookup")
elseif is_plat("linux", "bsd") then
add_shflags("-undefined suppress")
end
-- add projects