Commit | Line | Data |
---|---|---|
92d2205a AB |
1 | Do not capture the build-time value of $PATH in the 'emacs' executable |
2 | since this can noticeably increase the size of the closure of Emacs | |
3 | with things like GCC being referenced. | |
4 | ||
5 | (like emacs-exec-path.patch, but for Emacs 27) | |
6 | ||
7 | --- a/lisp/loadup.el | |
8 | +++ b/lisp/loadup.el | |
9 | @@ -479,7 +479,8 @@ lost after dumping"))) | |
10 | ((equal dump-mode "dump") "emacs") | |
11 | ((equal dump-mode "bootstrap") "emacs") | |
12 | ((equal dump-mode "pbootstrap") "bootstrap-emacs.pdmp") | |
13 | - (t (error "unrecognized dump mode %s" dump-mode))))) | |
14 | + (t (error "unrecognized dump mode %s" dump-mode)))) | |
15 | + (exec-path nil)) | |
16 | (message "Dumping under the name %s" output) | |
17 | (condition-case () | |
18 | (delete-file output) |