diff options
| -rw-r--r-- | xmake/modules/package/tools/meson.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
