Never specify /O1

Leaving it as /O2 might improve performance.
Stops this from being spammed:
cl : command line  warning D9025: overriding '/O2' with '/O1' [D:\a\xenia-canary\xenia-canary\build\glslang-spirv.vcxproj]

/Os is implied by /O1;
https://learn.microsoft.com/en-us/cpp/build/reference/o1-o2-minimize-size-maximize-speed?view=msvc-170
This commit is contained in:
Margen67 2024-12-12 20:52:37 -08:00
parent 1d51ff5bfd
commit bffdcf9842
7 changed files with 32 additions and 40 deletions

View File

@ -119,11 +119,10 @@ project("xenia-app")
"xenia-gpu-d3d12-trace-viewer", "xenia-gpu-d3d12-trace-viewer",
"xenia-ui-window-d3d12-demo", "xenia-ui-window-d3d12-demo",
}) })
filter({"configurations:Release", "platforms:Windows"}) -- filter({"configurations:Release", "platforms:Windows"})
buildoptions({ -- buildoptions({
"/Os", -- "/O1",
"/O1" -- })
})
filter("platforms:Windows") filter("platforms:Windows")
-- Only create the .user file if it doesn't already exist. -- Only create the .user file if it doesn't already exist.

View File

@ -23,8 +23,7 @@ project("xenia-cpu")
include("testing") include("testing")
include("ppc/testing") include("ppc/testing")
filter({"configurations:Release", "platforms:Windows"}) -- filter({"configurations:Release", "platforms:Windows"})
buildoptions({ -- buildoptions({
"/Os", -- "/O1",
"/O1" -- })
})

View File

@ -12,12 +12,11 @@ project("xenia-debug-ui")
"xenia-cpu", "xenia-cpu",
"xenia-ui", "xenia-ui",
}) })
filter({"configurations:Release", "platforms:Windows"}) -- filter({"configurations:Release", "platforms:Windows"})
buildoptions({ -- buildoptions({
"/Os", -- "/O1",
"/O1" -- })
}) -- filter{}
filter{}
defines({ defines({
}) })
includedirs({ includedirs({

View File

@ -10,12 +10,11 @@ project("xenia-ui-d3d12")
"xenia-base", "xenia-base",
"xenia-ui", "xenia-ui",
}) })
filter({"configurations:Release", "platforms:Windows"}) -- filter({"configurations:Release", "platforms:Windows"})
buildoptions({ -- buildoptions({
"/Os", -- "/O1",
"/O1" -- })
}) -- filter {}
filter {}
local_platform_files() local_platform_files()
files({ files({
"../shaders/bytecode/d3d12_5_1/*.h", "../shaders/bytecode/d3d12_5_1/*.h",

View File

@ -14,11 +14,10 @@ project("xenia-ui")
local_platform_files() local_platform_files()
removefiles({"*_demo.cc"}) removefiles({"*_demo.cc"})
removefiles({"windowed_app_main_*.cc"}) removefiles({"windowed_app_main_*.cc"})
filter({"configurations:Release", "platforms:Windows"}) -- filter({"configurations:Release", "platforms:Windows"})
buildoptions({ -- buildoptions({
"/Os", -- "/O1",
"/O1" -- })
})
filter("platforms:Android-*") filter("platforms:Android-*")
-- Exports JNI functions. -- Exports JNI functions.
wholelib("On") wholelib("On")

View File

@ -10,12 +10,11 @@ project("xenia-ui-vulkan")
"xenia-base", "xenia-base",
"xenia-ui", "xenia-ui",
}) })
filter({"configurations:Release", "platforms:Windows"}) -- filter({"configurations:Release", "platforms:Windows"})
buildoptions({ -- buildoptions({
"/Os", -- "/O1",
"/O1" -- })
}) -- filter {}
filter {}
includedirs({ includedirs({
project_root.."/third_party/Vulkan-Headers/include", project_root.."/third_party/Vulkan-Headers/include",
}) })

View File

@ -11,12 +11,11 @@ project("xenia-vfs")
}) })
defines({ defines({
}) })
filter({"configurations:Release", "platforms:Windows"}) -- filter({"configurations:Release", "platforms:Windows"})
buildoptions({ -- buildoptions({
"/Os", -- "/O1",
"/O1" -- })
}) -- filter {}
filter {}
recursive_platform_files() recursive_platform_files()
removefiles({"vfs_dump.cc"}) removefiles({"vfs_dump.cc"})
@ -40,4 +39,3 @@ project("xenia-vfs-dump")
project_root, project_root,
}) })
include("testing") include("testing")