diff options
| author | ruki <[email protected]> | 2022-03-17 22:52:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-03-17 22:52:19 +0800 |
| commit | 002b55ba40bfbf1e166b019e2760aa8f6cf74f2e (patch) | |
| tree | dcf5d0cf949be80a28301def5b56a26906ac5a91 | |
| parent | a0fc65a779b7793cc48598e2a90a6ddc45514ec9 (diff) | |
fix vs generator for rc
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua index 583e9a407..f836632fb 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua @@ -923,8 +923,8 @@ function _build_common_items(vsinfo, target) -- make compiler flags local flags = _make_compflags(sourcefile, targetinfo, target.project_dir) - -- no common flags for asm - if sourcekind ~= "as" then + -- no common flags for asm/rc + if sourcekind ~= "as" and sourcekind ~= "mrc" then for _, flag in ipairs(table.unique(flags)) do flags_stats.cl[flag] = (flags_stats.cl[flag] or 0) + 1 end |
