engine: platform: posix: use glibc-based backtrace implementation for crash handling, if execinfo.h can be found

This commit is contained in:
Alibek Omarov
2025-02-02 18:06:18 +03:00
parent c3ebb84b97
commit d0464ef602
3 changed files with 92 additions and 3 deletions

View File

@@ -111,6 +111,8 @@ def configure(conf):
if hasattr(conf.options, 'DLLEMU'):
conf.define_cond('XASH_DLL_LOADER', conf.options.DLLEMU)
conf.check_cc(header_name='execinfo.h', mandatory=False, define_name='HAVE_EXECINFO')
conf.define('ENGINE_DLL', 1)
conf.define_cond('XASH_ENGINE_TESTS', conf.options.ENGINE_TESTS)
conf.define_cond('XASH_STATIC_LIBS', conf.env.STATIC_LINKING)