summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-24 22:53:35 +0800
committerruki <[email protected]>2020-12-24 22:53:35 +0800
commit5beced53d4ba81070c79a777ac5f5f0233e22e4e (patch)
treeb2c6aa0654e0e68a2a40dc2870928551539b9805 /xmake/modules/package/tools/xmake.lua
parent381e3c74967cfab1c5d42e9ee7fcb68a5a1533f7 (diff)
add vs_runtime config and set_runtimes api
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
-rw-r--r--xmake/modules/package/tools/xmake.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index 84ef7ef5b..391afc4ca 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -33,8 +33,7 @@ function _get_configs(package, configs)
if package:is_plat("windows") then
local vs_runtime = package:config("vs_runtime")
if vs_runtime then
- local vs_runtime_cxflags = "/" .. vs_runtime .. (package:debug() and "d" or "")
- table.insert(cxflags, vs_runtime_cxflags)
+ table.insert(cxflags, "--vs_runtime=" .. vs_runtime)
end
end
table.insert(configs, "--mode=" .. (package:debug() and "debug" or "release"))