diff options
| author | 夕伽 <[email protected]> | 2018-09-03 08:26:50 +0800 |
|---|---|---|
| committer | 夕伽 <[email protected]> | 2018-09-03 08:26:50 +0800 |
| commit | 8e286dbab27c3f592f8379185c43ca0cc930d34f (patch) | |
| tree | f5496eece3ee64b3fc5892e51fbddeca6fb7f4fb /xmake/plugins/project/vstudio/impl/vs201x.lua | |
| parent | 90786f2a568f3063907f4566d910da1ceae74194 (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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index bcdd45ddd..8671ea508 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -97,7 +97,7 @@ function _make_targetinfo(mode, arch, target) targetinfo.mfc = ifelse(target:values("mfc"), "Dynamic", nil) -- set unicode and mfc for _, flag in pairs(firstcompflags) do - if flag:find("-DUNICODE") then + if flag:find("[%-|/]DUNICODE") then targetinfo.unicode = true elseif flag:find("[%-|/]MT") then targetinfo.mfc = ifelse(targetinfo.mfc, "Static", false) |
