summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/meson.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-21 22:54:56 +0800
committerruki <[email protected]>2022-10-21 22:54:56 +0800
commit4feb80d5e55b32b2fe4a7fe060c19636b4e10ce7 (patch)
treec340d4ec62a74098da129e9fb9cbf683c47c7f16 /xmake/modules/package/tools/meson.lua
parentedd0ef42756ae603486dd5b66f7731ad82ef2b69 (diff)
fix meson tools
Diffstat (limited to 'xmake/modules/package/tools/meson.lua')
-rw-r--r--xmake/modules/package/tools/meson.lua5
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