summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxq114 <[email protected]>2021-05-25 15:33:09 +0800
committerxq114 <[email protected]>2021-05-25 15:33:09 +0800
commit44deecd05cf7956494da356e25a83f5f71e0d3b4 (patch)
tree49492dd58651d03a16914b252ab5258d1ec72800
parentccd1de7efef16a5a63033c6e75ed0ff522326ecd (diff)
improve vs_runtime setting
-rw-r--r--xmake/modules/package/tools/meson.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index ebfdce69a..1a72eb913 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -51,7 +51,7 @@ function _get_configs(package, configs, opt)
-- add vs_runtime flags
if package:is_plat("windows") then
- table.insert(configs, "-Db_vscrt=" .. (package:config("vs_runtime"):startswith("MT") and "mt" or "md"))
+ table.insert(configs, "-Db_vscrt=" .. package:config("vs_runtime"):lower())
end
-- add build directory