From 0132cb9a14577dbc290602c54fda920697ebcf3b Mon Sep 17 00:00:00 2001 From: Margen67 Date: Thu, 12 Dec 2024 19:35:48 -0800 Subject: [PATCH] Add /Ob3, remove /Oy /Ob3 might improve performance; https://learn.microsoft.com/en-us/cpp/build/reference/ob-inline-function-expansion?view=msvc-170 /Oy is implied by /O2; https://learn.microsoft.com/en-us/cpp/build/reference/o1-o2-minimize-size-maximize-speed?view=msvc-170 --- premake5.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/premake5.lua b/premake5.lua index 39d25db05..f439991e8 100644 --- a/premake5.lua +++ b/premake5.lua @@ -63,11 +63,11 @@ filter({"configurations:Checked", "platforms:Linux"}) "_GLIBCXX_DEBUG", -- libstdc++ debug mode }) filter({"configurations:Release", "platforms:Windows"}) - buildoptions({ - "/Gw", - "/GS-", - "/Oy" - }) + buildoptions({ + "/Gw", + "/GS-", + "/Ob3", + }) filter("configurations:Debug") runtime("Release") @@ -230,7 +230,7 @@ workspace("xenia") platforms({"Linux"}) elseif os.istarget("macosx") then platforms({"Mac"}) - xcodebuildsettings({ + xcodebuildsettings({ ["ARCHS"] = "x86_64" }) elseif os.istarget("windows") then