summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 2b01a37f5ab..9339d60866c 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -683,8 +683,12 @@ main (int argc, char **argv)
/* Record (approximately) where the stack begins. */
stack_bottom = &stack_bottom_variable;
+#ifndef CANNOT_DUMP
dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0
|| strcmp (argv[argc - 1], "bootstrap") == 0);
+#else
+ dumping = false;
+#endif
/* True if address randomization interferes with memory allocation. */
# ifdef __PPC64__