summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 2d60f2a1b..18f6ee868 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -184,10 +184,16 @@ function nf_optimize(self, level)
return maps[level]
end
--- make vs runtime flag
-function nf_runtime(self, vs_runtime)
- if vs_runtime then
- return "-" .. vs_runtime
+-- make the runtime flag
+function nf_runtime(self, runtime)
+ if runtime then
+ local maps = {
+ MT = "-MT",
+ MD = "-MD",
+ MTd = "-MTd",
+ MDd = "-MDd"
+ }
+ return maps[runtime]
end
end