summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-23 23:15:12 +0800
committerruki <[email protected]>2024-01-25 12:09:58 +0800
commit10f28484e790d677b805361875060ebde662bdb2 (patch)
treec370755a3553035cec3ee71dc2b7bcee0db5888f /xmake/modules/private/action/require/impl/package.lua
parent4e8b4b2c8bd84fb28aefcbf6ceb9eff5cd06143c (diff)
add vs_runtime config
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index cd61404d0..7c6218f35 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -371,6 +371,10 @@ function _add_package_configurations(package)
return true
end})
end
+ -- deprecated, please use runtimes
+ if package:extraconf("configs", "vs_runtime", "default") == nil then
+ package:add("configs", "vs_runtime", {builtin = true, description = "Set vs compiler runtime.", values = {"MT", "MTd", "MD", "MDd"}})
+ end
if package:extraconf("configs", "toolchains", "default") == nil then
package:add("configs", "toolchains", {builtin = true, description = "Set package toolchains only for cross-compilation."})
end