diff options
| author | Andrea Corallo | 2023-02-13 10:26:03 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2023-02-13 11:44:28 +0100 |
| commit | b6e2799aa1c3887c2995e115e6ff2f69d59f0e44 (patch) | |
| tree | c73dc3af9f48cf8ffc751a087af8455f96f5fff3 | |
| parent | c0681cd3477b6fce5e257ac720a32e09357ea157 (diff) | |
| download | emacs-b6e2799aa1c3887c2995e115e6ff2f69d59f0e44.tar.gz emacs-b6e2799aa1c3887c2995e115e6ff2f69d59f0e44.zip | |
* Some more `inhibit-native-compile' clean-up
* lisp/emacs-lisp/generate-lisp-file.el (generate-lisp-file-trailer):
Use `native-comp-deferred-compilation'.
| -rw-r--r-- | lisp/emacs-lisp/comp.el | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/generate-lisp-file.el | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 828e31c43bd..8a41989237e 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el | |||
| @@ -4107,14 +4107,12 @@ the deferred compilation mechanism." | |||
| 4107 | data | 4107 | data |
| 4108 | ;; So we return the compiled function. | 4108 | ;; So we return the compiled function. |
| 4109 | (native-elisp-load data))) | 4109 | (native-elisp-load data))) |
| 4110 | ;; We may have created a temporary file when we're being | ||
| 4111 | ;; called with something other than a file as the argument. | ||
| 4112 | ;; Delete it if we can. | ||
| 4113 | (when (and (not (stringp function-or-file)) | 4110 | (when (and (not (stringp function-or-file)) |
| 4114 | (not output) | 4111 | (not output) |
| 4115 | comp-ctxt | 4112 | comp-ctxt |
| 4116 | (comp-ctxt-output comp-ctxt) | 4113 | (comp-ctxt-output comp-ctxt) |
| 4117 | (file-exists-p (comp-ctxt-output comp-ctxt))) | 4114 | (file-exists-p (comp-ctxt-output comp-ctxt))) |
| 4115 | ;; NOTE: Not sure if we want to remove this or being cautious. | ||
| 4118 | (cond ((eq 'windows-nt system-type) | 4116 | (cond ((eq 'windows-nt system-type) |
| 4119 | ;; We may still be using the temporary .eln file. | 4117 | ;; We may still be using the temporary .eln file. |
| 4120 | (ignore-errors (delete-file (comp-ctxt-output comp-ctxt)))) | 4118 | (ignore-errors (delete-file (comp-ctxt-output comp-ctxt)))) |
diff --git a/lisp/emacs-lisp/generate-lisp-file.el b/lisp/emacs-lisp/generate-lisp-file.el index b2f67ab848d..167cdfbf826 100644 --- a/lisp/emacs-lisp/generate-lisp-file.el +++ b/lisp/emacs-lisp/generate-lisp-file.el | |||
| @@ -103,7 +103,7 @@ if it's also byte-compiled)." | |||
| 103 | (insert ";; no-byte-" "compile: t\n")) | 103 | (insert ";; no-byte-" "compile: t\n")) |
| 104 | (unless autoloads | 104 | (unless autoloads |
| 105 | (insert ";; no-update-autoloads: t\n")) | 105 | (insert ";; no-update-autoloads: t\n")) |
| 106 | (when inhibit-native-compile | 106 | (unless native-comp-deferred-compilation |
| 107 | (insert ";; no-native-" "compile: t\n")) | 107 | (insert ";; no-native-" "compile: t\n")) |
| 108 | (when coding | 108 | (when coding |
| 109 | (insert (format ";; coding: %s\n" | 109 | (insert (format ";; coding: %s\n" |