mirror of https://github.com/PCSX2/pcsx2.git
CMake: Force debug symbols in Linux Release builds
This commit is contained in:
parent
3a042d8c14
commit
ec927e5dd9
|
@ -169,6 +169,12 @@ if(WIN32)
|
||||||
list(APPEND PCSX2_DEFS TIXML_USE_STL _SCL_SECURE_NO_WARNINGS _UNICODE UNICODE)
|
list(APPEND PCSX2_DEFS TIXML_USE_STL _SCL_SECURE_NO_WARNINGS _UNICODE UNICODE)
|
||||||
endif()
|
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)
|
if(MSVC)
|
||||||
# Enable PDB generation in release builds
|
# Enable PDB generation in release builds
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
|
|
Loading…
Reference in New Issue