mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-17 17:41:57 +00:00
added NOEXECINFO to cMake
added NOEXECINFO to cMake
This commit is contained in:
parent
90edfa562d
commit
8374a1628c
3 changed files with 7 additions and 0 deletions
|
@ -75,6 +75,7 @@ option(SRB2_CONFIG_ERRORMODE "Compile C code with warnings treated as errors." O
|
||||||
option(SRB2_CONFIG_DEBUGMODE "Compile with PARANOIA, ZDEBUG, RANGECHECK and PACKETDROP defined." OFF)
|
option(SRB2_CONFIG_DEBUGMODE "Compile with PARANOIA, ZDEBUG, RANGECHECK and PACKETDROP defined." OFF)
|
||||||
option(SRB2_CONFIG_MOBJCONSISTANCY "Compile with MOBJCONSISTANCY defined." OFF)
|
option(SRB2_CONFIG_MOBJCONSISTANCY "Compile with MOBJCONSISTANCY defined." OFF)
|
||||||
option(SRB2_CONFIG_PACKETDROP "Compile with PACKETDROP defined." OFF)
|
option(SRB2_CONFIG_PACKETDROP "Compile with PACKETDROP defined." OFF)
|
||||||
|
option(SRB2_CONFIG_EXECINFO "Enable stack trace dump support." ON)
|
||||||
option(SRB2_CONFIG_ZDEBUG "Compile with ZDEBUG defined." OFF)
|
option(SRB2_CONFIG_ZDEBUG "Compile with ZDEBUG defined." OFF)
|
||||||
# SRB2_CONFIG_PROFILEMODE is probably superceded by some CMake setting.
|
# SRB2_CONFIG_PROFILEMODE is probably superceded by some CMake setting.
|
||||||
option(SRB2_CONFIG_PROFILEMODE "Compile for profiling (GCC only)." OFF)
|
option(SRB2_CONFIG_PROFILEMODE "Compile for profiling (GCC only)." OFF)
|
||||||
|
|
|
@ -380,6 +380,11 @@ endif()
|
||||||
if(SRB2_CONFIG_PACKETDROP)
|
if(SRB2_CONFIG_PACKETDROP)
|
||||||
target_compile_definitions(SRB2SDL2 PRIVATE -DPACKETDROP)
|
target_compile_definitions(SRB2SDL2 PRIVATE -DPACKETDROP)
|
||||||
endif()
|
endif()
|
||||||
|
if(SRB2_CONFIG_EXECINFO)
|
||||||
|
else()
|
||||||
|
target_compile_definitions(SRB2SDL2 PRIVATE -DNOEXECINFO)
|
||||||
|
message(STATUS "You have disabled stack trace dump support")
|
||||||
|
endif()
|
||||||
if(SRB2_CONFIG_ZDEBUG)
|
if(SRB2_CONFIG_ZDEBUG)
|
||||||
target_compile_definitions(SRB2SDL2 PRIVATE -DZDEBUG)
|
target_compile_definitions(SRB2SDL2 PRIVATE -DZDEBUG)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
# NOPOSTPROCESSING=1 - ?
|
# NOPOSTPROCESSING=1 - ?
|
||||||
# MOBJCONSISTANCY=1 - ??
|
# MOBJCONSISTANCY=1 - ??
|
||||||
# PACKETDROP=1 - ??
|
# PACKETDROP=1 - ??
|
||||||
|
# NOEXECINFO=1 - Disable stack trace dump support
|
||||||
# DEBUGMODE=1 - Enable various debugging capabilities.
|
# DEBUGMODE=1 - Enable various debugging capabilities.
|
||||||
# Also disables optimizations.
|
# Also disables optimizations.
|
||||||
# NOZLIB=1 - Disable some compression capability. Implies
|
# NOZLIB=1 - Disable some compression capability. Implies
|
||||||
|
|
Loading…
Reference in a new issue