From d978a21418a48d0c25b32805abd4ed2fa31f69d4 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Sat, 11 Dec 2021 23:45:23 +0100 Subject: project/vstudio: Enable MultiProcessorCompilation by default --- 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 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("false", condition) - if flagstr:find("[%-/]MP") then + if not flagstr:find("[%-/]MP1") then vcxprojfile:print("true", 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 -- cgit v1.3.1