diff options
| author | 夕伽 <[email protected]> | 2018-09-03 11:13:34 +0800 |
|---|---|---|
| committer | 夕伽 <[email protected]> | 2018-09-03 11:13:34 +0800 |
| commit | 5ff368bb0b3990c1ff6d360cd27cd4d4e24da511 (patch) | |
| tree | d3c8ef59fe0894b9480e34bea3e9fb7bf519a607 /xmake/plugins/project/vstudio/impl/vs201x.lua | |
| parent | c39dadaef967d5ea5e334af442ca4c8c56959a3a (diff) | |
1 string.lower(xxx) -> xxx:lower()
2 -DUNICODE -> [%-|/]DUNICODE
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x.lua')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 8 |
1 files changed, 1 insertions, 7 deletions
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 |
