From 4feb80d5e55b32b2fe4a7fe060c19636b4e10ce7 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 21 Oct 2022 22:54:56 +0800 Subject: fix meson tools --- xmake/modules/package/tools/meson.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xmake/modules/package') diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua index 67be5884a..7d4f89fac 100644 --- a/xmake/modules/package/tools/meson.lua +++ b/xmake/modules/package/tools/meson.lua @@ -244,8 +244,9 @@ function _get_configs(package, configs, opt) end -- add vs_runtime flags - if package:is_plat("windows") then - table.insert(configs, "-Db_vscrt=" .. package:config("vs_runtime"):lower()) + local vs_runtime = package:config("vs_runtime") + if package:is_plat("windows") and vs_runtime then + table.insert(configs, "-Db_vscrt=" .. vs_runtime:lower()) end -- add cross file -- cgit v1.3.1