diff options
| author | Phillip Lord | 2017-02-27 21:23:35 +0000 |
|---|---|---|
| committer | Phillip Lord | 2017-02-28 21:32:49 +0000 |
| commit | 7b5e1c8238ef961fd3305b1dce053b9bced684ba (patch) | |
| tree | a992d47052b5186a1c344a1f4a86d6b8aadc84ff /admin | |
| parent | 75727406535572fb8d18e0c4d92f5a033a1a0933 (diff) | |
| download | emacs-7b5e1c8238ef961fd3305b1dce053b9bced684ba.tar.gz emacs-7b5e1c8238ef961fd3305b1dce053b9bced684ba.zip | |
Speed generation of ldefs-boot-auto
Previously, generation of ldefs-boot-auto required at least one full
bootstrap and, in extreme cases, two. Now, from build system, it
requires the same time as taken to dump Emacs.
* Makefile.in: Remove all calls, pass to src.
* admin/ldefs-clean.el: Update for changed messages.
* lisp/Makefile.in (compile-first-delete): Add.
* lisp/ldefs-boot-auto.el: Update.
* src/Makefile.in (generate-ldefs-boot): Add.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ldefs-clean.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/admin/ldefs-clean.el b/admin/ldefs-clean.el index c227a163604..91512b4bbb7 100644 --- a/admin/ldefs-clean.el +++ b/admin/ldefs-clean.el | |||
| @@ -40,9 +40,6 @@ | |||
| 40 | ;; We need to record autoloads till the point that emacs (as opposed | 40 | ;; We need to record autoloads till the point that emacs (as opposed |
| 41 | ;; to bootstrap-emacs) is dumped. After this point, we are not | 41 | ;; to bootstrap-emacs) is dumped. After this point, we are not |
| 42 | ;; bootstrapping any more. | 42 | ;; bootstrapping any more. |
| 43 | (search-backward "-l loadup dump") | ||
| 44 | (beginning-of-line) | ||
| 45 | (delete-region (point) (point-max)) | ||
| 46 | (keep-lines "(autoload" (point-min) (point-max)) | 43 | (keep-lines "(autoload" (point-min) (point-max)) |
| 47 | (sort-lines nil (point-min) (point-max)) | 44 | (sort-lines nil (point-min) (point-max)) |
| 48 | (ldefs-clean-uniquify-buffer-lines) | 45 | (ldefs-clean-uniquify-buffer-lines) |
| @@ -60,6 +57,6 @@ | |||
| 60 | 57 | ||
| 61 | 58 | ||
| 62 | (defun ldefs-clean () | 59 | (defun ldefs-clean () |
| 63 | (find-file "lisp/ldefs-boot-auto.temp") | 60 | (find-file "../lisp/ldefs-boot-auto.temp") |
| 64 | (ldefs-clean-up) | 61 | (ldefs-clean-up) |
| 65 | (write-file "ldefs-boot-auto.el")) | 62 | (write-file "ldefs-boot-auto.el")) |