diff options
| author | xq114 <[email protected]> | 2022-03-17 19:17:10 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2022-03-17 19:17:10 +0800 |
| commit | cd5d862ab891bcf29e66646ed6ca8bd32262f93b (patch) | |
| tree | 3797654683675064bb6d118e70bdb512e69527a8 | |
| parent | f6f371ae572e8076fee71006622598b33b14f11e (diff) | |
fix vs generator
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua index f836632fb..688a12f13 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua @@ -980,7 +980,12 @@ function _build_common_items(vsinfo, target) local sourceflags = {} for _, sourcebatch in pairs(targetinfo.sourcebatches) do local sourcekind = sourcebatch.sourcekind - if (sourcekind == "cc" or sourcekind == "cxx" or sourcekind == "mrc") then + if (sourcekind == "as" or sourcekind == "mrc") then + -- no common flags for as/mrc files + for _, sourcefile in ipairs(sourcebatch.sourcefiles) do + sourceflags[sourcefile] = targetinfo.sourceflags[sourcefile] + end + elseif (sourcekind == "cc" or sourcekind == "cxx") then for _, sourcefile in ipairs(sourcebatch.sourcefiles) do local flags = targetinfo.sourceflags[sourcefile] local otherflags = {} |
