Skip to content

Commit 5cb5280

Browse files
authored
DPL: enable Signposts by default also on linux (#12567)
1 parent e4dfd2f commit 5cb5280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Framework/Foundation/include/Framework/Signpost.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ o2_log_handle_t* o2_walk_logs(bool (*callback)(char const* name, void* log, void
108108
#endif // __APPLE__
109109

110110
// Unless we are on apple we enable checking for signposts only if in debug mode or if we force them.
111-
#if defined(__APPLE__) || defined(O2_FORCE_SIGNPOSTS) || !defined(NDEBUG)
111+
#if defined(__APPLE__) || defined(O2_FORCE_SIGNPOSTS) || !defined(O2_NSIGNPOSTS)
112112
#define O2_LOG_ENABLED(log) private_o2_log_##log->stacktrace
113113
#else
114114
#define O2_LOG_ENABLED(log) false
@@ -448,7 +448,7 @@ void o2_debug_log_set_stacktrace(_o2_log_t* log, int stacktrace)
448448
}
449449
#endif // O2_SIGNPOST_IMPLEMENTATION
450450

451-
#if defined(__APPLE__) || defined(O2_FORCE_SIGNPOSTS) || !defined(NDEBUG)
451+
#if defined(__APPLE__) || defined(O2_FORCE_SIGNPOSTS) || !defined(O2_NSIGNPOSTS)
452452
/// Dynamic logs need to be enabled via the O2_LOG_ENABLE macro. Notice this will only work
453453
/// for the logger based logging, since the Apple version needs instruments to enable them.
454454
#define O2_DECLARE_DYNAMIC_LOG(name) static _o2_log_t* private_o2_log_##name = (_o2_log_t*)_o2_log_create("ch.cern.aliceo2." #name, 1)

0 commit comments

Comments
 (0)