From 5ff368bb0b3990c1ff6d360cd27cd4d4e24da511 Mon Sep 17 00:00:00 2001 From: 夕伽 Date: Mon, 3 Sep 2018 11:13:34 +0800 Subject: 1 string.lower(xxx) -> xxx:lower() 2 -DUNICODE -> [%-|/]DUNICODE --- xmake/plugins/project/vstudio/impl/vs201x.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'xmake/plugins/project/vstudio/impl/vs201x.lua') diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 8671ea508..65c4d1d2a 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -93,16 +93,10 @@ function _make_targetinfo(mode, arch, target) local linkflags = linker.linkflags(target:get("kind"), target:sourcekinds(), {target = target}) targetinfo.linkflags = linkflags - -- set default mfc - targetinfo.mfc = ifelse(target:values("mfc"), "Dynamic", nil) - -- set unicode and mfc + -- set unicode for _, flag in pairs(firstcompflags) do if flag:find("[%-|/]DUNICODE") then targetinfo.unicode = true - elseif flag:find("[%-|/]MT") then - targetinfo.mfc = ifelse(targetinfo.mfc, "Static", false) - elseif flag:find("[%-|/]MD") then - targetinfo.mfc = ifelse(targetinfo.mfc, "Dynamic", false) end end -- cgit v1.3.1