1
0
mirror of synced 2025-01-19 01:24:15 +01:00

build: Fix build on systems that have no backtrace or execinfo

Fixes #932
This commit is contained in:
WerWolv 2023-02-13 08:27:08 +01:00
parent 4b451fd1d3
commit 61ce88ba9b

View File

@ -94,7 +94,9 @@
}
#elif defined(HEX_HAS_EXECINFO) && __has_include(BACKTRACE_HEADER)
#elif defined(HEX_HAS_EXECINFO)
#if __has_include(BACKTRACE_HEADER)
#include BACKTRACE_HEADER
#include <llvm/Demangle/Demangle.h>
@ -121,8 +123,11 @@
}
}
#endif
#elif defined(HEX_HAS_BACKTRACE) && __has_include(BACKTRACE_HEADER)
#elif defined(HEX_HAS_BACKTRACE)
#if __has_include(BACKTRACE_HEADER)
#include BACKTRACE_HEADER
#include <llvm/Demangle/Demangle.h>
@ -164,6 +169,8 @@
}
#endif
#else
namespace hex::stacktrace {