X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/25cc0f2aada3e321e5f1c6d1e492a93d16da45b2..1a5d0c15185986e645e8fb8080a2338d8f17d562:/lisp/loadup.el diff --git a/lisp/loadup.el b/lisp/loadup.el index db3c36d1f0..5c16464282 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el @@ -78,10 +78,6 @@ (expand-file-name "textmodes" dir) (expand-file-name "vc" dir))))) -;; Prevent build-time PATH getting stored in the binary. -;; Mainly cosmetic, but helpful for Guix. (Bug#20330) -(setq exec-path nil) - (if (eq t purify-flag) ;; Hash consing saved around 11% of pure space in my tests. (setq purify-flag (make-hash-table :test 'equal :size 80000))) @@ -431,6 +427,12 @@ lost after dumping"))) (message "Pure-hashed: %d strings, %d vectors, %d conses, %d bytecodes, %d others" strings vectors conses bytecodes others))) +;; Prevent build-time PATH getting stored in the binary. +;; Mainly cosmetic, but helpful for Guix. (Bug#20330) +;; Do this here, rather than earlier, so that the above code +;; can invoke Git commands and the like. +(setq exec-path nil) + ;; Avoid error if user loads some more libraries now and make sure the ;; hash-consing hash table is GC'd. (setq purify-flag nil)