Commit 457fe789 authored by Alp Mestanogullari's avatar Alp Mestanogullari Committed by Marge Bot

Hadrian: teach the RTS that PROFILING implies TRACING

As discussed in #16744, both the Make and Hadrian build systems
have special code to always pass -eventlog whenever -prof or -debug
are passed. However, there is some similar logic in the RTS itself only
for defining TRACING when the DEBUG macro is defined, but no such logic
is implemented to define TRACING when the PROFILING macro is defined.
This patch adds such a logic and therefore fixes #16744.
parent 762098bf
Pipeline #6931 canceled with stages
in 252 minutes
......@@ -26,11 +26,15 @@
#define USING_LIBBFD 1
#endif
/* DEBUG implies TRACING and TICKY_TICKY */
#if defined(DEBUG)
/* DEBUG and PROFILING both imply TRACING */
#if defined(DEBUG) || defined(PROFILING)
#if !defined(TRACING)
#define TRACING
#endif
#endif
/* DEBUG implies TICKY_TICKY */
#if defined(DEBUG)
#if !defined(TICKY_TICKY)
#define TICKY_TICKY
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment