Use -Og or equivalent for debug builds

Unless minimal cflags is set add -Og or equivalent to CXXFLAGS for debug
build configuration.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2024-11-03 18:26:19 +01:00
parent b97f1233ad
commit 81171f3bb4

View file

@ -188,6 +188,11 @@ function project_set_build_flags()
filter { "Debug", "action:vs*" }
defines { "DEBUG" }
filter { "Debug" }
if os.istarget("windows") or not _OPTIONS["minimal-flags"] then
optimize "Debug"
end
filter "Release"
if os.istarget("windows") or not _OPTIONS["minimal-flags"] then
optimize "Speed"