summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2021-12-11 23:45:23 +0100
committerJérôme Leclercq <[email protected]>2021-12-11 23:45:23 +0100
commitd978a21418a48d0c25b32805abd4ed2fa31f69d4 (patch)
tree1d15313fea8b66f5683f2c0d6925dd8c53832e5d
parente0a66639122aef90577f67a1e2b7de664fe31e89 (diff)
project/vstudio: Enable MultiProcessorCompilation by default
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua4
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 94dd7150e..74f219320 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
@@ -334,7 +334,7 @@ function _make_source_options(vcxprojfile, flags, condition)
-- handle multi processor compilation
if flagstr:find("[%-/]Gm-") or not flagstr:find("[%-/]Gm") then
vcxprojfile:print("<MinimalRebuild%s>false</MinimalRebuild>", condition)
- if flagstr:find("[%-/]MP") then
+ if not flagstr:find("[%-/]MP1") then
vcxprojfile:print("<MultiProcessorCompilation%s>true</MultiProcessorCompilation>", condition)
end
end
@@ -357,7 +357,7 @@ function _make_source_options(vcxprojfile, flags, condition)
-- make AdditionalOptions
local additional_flags = {}
- local excludes = {"Od", "Os", "O0", "O1", "O2", "Ot", "Ox", "W0", "W1", "W2", "W3", "WX", "Wall", "Zi", "ZI", "Z7", "MT", "MTd", "MD", "MDd", "TP", "Fd", "fp", "I", "D", "Gm-", "Gm"}
+ local excludes = {"Od", "Os", "O0", "O1", "O2", "Ot", "Ox", "W0", "W1", "W2", "W3", "WX", "Wall", "Zi", "ZI", "Z7", "MT", "MTd", "MD", "MDd", "TP", "Fd", "fp", "I", "D", "Gm-", "Gm", "MP"}
for _, flag in ipairs(flags) do
local excluded = false
for _, exclude in ipairs(excludes) do