From 44deecd05cf7956494da356e25a83f5f71e0d3b4 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Tue, 25 May 2021 15:33:09 +0800 Subject: improve vs_runtime setting --- xmake/modules/package/tools/meson.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1