Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-11-03 19:21:09 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-11-03 19:21:09 +0300
commite7ac54fba6ba52dfc92df266736f18de53df6cbc (patch)
tree8f68b0a059dd9e9bacad4394b836b95255b5b71f
parent4abb3b5e90a30953878624fbb95246015c17e4d2 (diff)
Signals are only set if TRACY_NO_CRASH_HANDLER is not defined.
-rw-r--r--public/client/TracyProfiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp
index a6017397..afde50e3 100644
--- a/public/client/TracyProfiler.cpp
+++ b/public/client/TracyProfiler.cpp
@@ -1454,7 +1454,7 @@ Profiler::~Profiler()
if( m_crashHandlerInstalled ) RemoveVectoredExceptionHandler( m_exceptionHandler );
#endif
-#ifdef __linux__
+#if defined __linux__ && !defined TRACY_NO_CRASH_HANDLER
if( m_crashHandlerInstalled )
{
sigaction( TRACY_CRASH_SIGNAL, &m_prevSignal.pwr, nullptr );