summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-23 23:17:46 +0800
committerruki <[email protected]>2024-01-25 12:09:59 +0800
commit3618119fe36169f63bf9c4efcad5f9802ba37581 (patch)
tree7451a56af725a28526ca1bcf3814f821e237b3b2 /xmake/core/package/package.lua
parentcfd58ddb7af2e99cca95087ba001103d327a8abf (diff)
fix vs_runtime default
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 30b2654a9..2435c8bf8 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1474,6 +1474,10 @@ function _instance:configs()
local value = configs_required[name]
if value == nil then
value = self:extraconf("configs", name, "default")
+ -- support for the deprecated vs_runtime in add_configs
+ if name == "runtimes" and value == nil then
+ value = self:extraconf("configs", "vs_runtime", "default")
+ end
end
configs[name] = value
end