diff options
Diffstat (limited to 'xmake/modules/package/tools/meson.lua')
| -rw-r--r-- | xmake/modules/package/tools/meson.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua index 6e0c27d7e..2a2b248cf 100644 --- a/xmake/modules/package/tools/meson.lua +++ b/xmake/modules/package/tools/meson.lua @@ -289,11 +289,11 @@ function _get_configs_file(package, opt) -- add runtimes flags for _, runtime in ipairs(package:runtimes()) do if not runtime:startswith("M") then - local fake_target = {is_shared = function(_) return false end, + local fake_target = {is_shared = function(_) return false end, sourcekinds = function(_) return "cxx" end} table.join2(cxxflags, _map_compflags(fake_target, "cxx", "runtime", {runtime})) table.join2(ldflags, _map_linkflags(fake_target, "binary", {"cxx"}, "runtime", {runtime})) - fake_target = {is_shared = function(_) return true end, + fake_target = {is_shared = function(_) return true end, sourcekinds = function(_) return "cxx" end} table.join2(shflags, _map_linkflags(fake_target, "shared", {"cxx"}, "runtime", {runtime})) end @@ -347,7 +347,7 @@ function _get_configs(package, configs, opt) end -- add vs runtimes flags - if package:has_runtime("MT*", "MD*") then + if package:is_plat("windows") then if package:has_runtime("MT") then table.insert(configs, "-Db_vscrt=mt") elseif package:has_runtime("MTd") then |
