Commit 8ca414de authored by Glenn Morris's avatar Glenn Morris

Fix --enable-profiling builds (bug#34099)

* src/profiler.c (syms_of_profiler_for_pdumper):
Only set cpu_log if CPU profiling is enabled.
parent 0aece3e1
Pipeline #550 failed with stage
in 48 minutes and 37 seconds
...@@ -627,12 +627,16 @@ syms_of_profiler_for_pdumper (void) ...@@ -627,12 +627,16 @@ syms_of_profiler_for_pdumper (void)
{ {
if (dumped_with_pdumper_p ()) if (dumped_with_pdumper_p ())
{ {
#ifdef PROFILER_CPU_SUPPORT
cpu_log = Qnil; cpu_log = Qnil;
#endif
memory_log = Qnil; memory_log = Qnil;
} }
else else
{ {
#ifdef PROFILER_CPU_SUPPORT
eassert (NILP (cpu_log)); eassert (NILP (cpu_log));
#endif
eassert (NILP (memory_log)); eassert (NILP (memory_log));
} }
......
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