diff options
| author | Glenn Morris | 2019-01-17 07:19:45 -0500 |
|---|---|---|
| committer | Glenn Morris | 2019-01-17 07:19:45 -0500 |
| commit | 8ca414de0eb0b87f4c9a8d301cc45ec51312dace (patch) | |
| tree | 0737c560c2650d3888255076aedc56845fafa336 /src | |
| parent | 0aece3e1181e66f2a1a067ae876e55bdaa45edd5 (diff) | |
| download | emacs-8ca414de0eb0b87f4c9a8d301cc45ec51312dace.tar.gz emacs-8ca414de0eb0b87f4c9a8d301cc45ec51312dace.zip | |
Fix --enable-profiling builds (bug#34099)
* src/profiler.c (syms_of_profiler_for_pdumper):
Only set cpu_log if CPU profiling is enabled.
Diffstat (limited to 'src')
| -rw-r--r-- | src/profiler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/profiler.c b/src/profiler.c index a98d967b2a1..15a0eef0d3e 100644 --- a/src/profiler.c +++ b/src/profiler.c | |||
| @@ -627,12 +627,16 @@ syms_of_profiler_for_pdumper (void) | |||
| 627 | { | 627 | { |
| 628 | if (dumped_with_pdumper_p ()) | 628 | if (dumped_with_pdumper_p ()) |
| 629 | { | 629 | { |
| 630 | #ifdef PROFILER_CPU_SUPPORT | ||
| 630 | cpu_log = Qnil; | 631 | cpu_log = Qnil; |
| 632 | #endif | ||
| 631 | memory_log = Qnil; | 633 | memory_log = Qnil; |
| 632 | } | 634 | } |
| 633 | else | 635 | else |
| 634 | { | 636 | { |
| 637 | #ifdef PROFILER_CPU_SUPPORT | ||
| 635 | eassert (NILP (cpu_log)); | 638 | eassert (NILP (cpu_log)); |
| 639 | #endif | ||
| 636 | eassert (NILP (memory_log)); | 640 | eassert (NILP (memory_log)); |
| 637 | } | 641 | } |
| 638 | 642 | ||