Bring back debug flags

This commit is contained in:
NepDisk 2025-11-10 14:42:07 -05:00
parent 95ca3ad870
commit 48849518be

View file

@ -235,10 +235,11 @@ endif()
# TODO: fix prng and P_CreateBlockmap overflow at some point
target_compile_options(SRB2SDL2 PRIVATE -fwrapv)
target_compile_options(SRB2SDL2 PRIVATE -O0)
target_compile_options(SRB2SDL2 PRIVATE -g)
if (${CMAKE_BUILD_TYPE} MATCHES Debug)
target_compile_options(SRB2SDL2 PRIVATE -O0)
else()
target_compile_options(SRB2SDL2 PRIVATE -O3)
endif()
# Compiler warnings configuration
target_compile_options(SRB2SDL2 PRIVATE