From 002b55ba40bfbf1e166b019e2760aa8f6cf74f2e Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 17 Mar 2022 22:52:19 +0800 Subject: fix vs generator for rc --- xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 4 ++-- 1 file 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 -- cgit v1.3.1