diff options
| author | ruki <[email protected]> | 2021-12-12 22:32:36 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-12 22:32:36 +0800 |
| commit | 20f9cb8dc40760dc7d117136ca47ca52c854dc2e (patch) | |
| tree | c95d9e8b1f2af850368392cd9c065d7f40f1f6fd /xmake/plugins/project/make/makefile.lua | |
| parent | 5c4adb14e1f45b40bb3d90a9459386f67f08c15f (diff) | |
| parent | 89a488735ab235ee856bb61f5821f429013d6c2e (diff) | |
Merge pull request #1904 from SirLynix/vsproject_fix
Improve vstudio
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
| -rw-r--r-- | xmake/plugins/project/make/makefile.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua index f9f0581c0..601f920c9 100644 --- a/xmake/plugins/project/make/makefile.lua +++ b/xmake/plugins/project/make/makefile.lua @@ -109,7 +109,7 @@ function _make_common_flags(target, sourcekind, sourcebatch) -- make common flags local commonflags = {} for _, flag in ipairs(first_flags) do - if flags_stats[flag] == files_count then + if flags_stats[flag] >= files_count then table.insert(commonflags, flag) end end @@ -119,7 +119,7 @@ function _make_common_flags(target, sourcekind, sourcebatch) for sourcefile, flags in pairs(sourceflags) do local otherflags = {} for _, flag in ipairs(flags) do - if flags_stats[flag] ~= files_count then + if flags_stats[flag] < files_count then table.insert(otherflags, flag) end end |
