CMake: Force debug symbols in Linux Release builds

This commit is contained in:
Stenzek
2023-03-20 01:33:15 +10:00
committed by refractionpcsx2
parent 3a042d8c14
commit ec927e5dd9

View File

@@ -169,6 +169,12 @@ if(WIN32)
list(APPEND PCSX2_DEFS TIXML_USE_STL _SCL_SECURE_NO_WARNINGS _UNICODE UNICODE)
endif()
# Enable debug information in release builds for Linux.
# Makes the backtrace actually meaningful.
if(UNIX AND NOT APPLE)
add_compile_options($<$<CONFIG:Release>:-g>)
endif()
if(MSVC)
# Enable PDB generation in release builds
add_compile_options(