diff options
| author | Andrea Corallo | 2022-02-01 17:58:47 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2022-02-01 18:05:51 +0100 |
| commit | 02054d9cd1f5c6a5ca3555207235522532477e10 (patch) | |
| tree | 88e0da56f557b9a31e4dd91299659b01bdcdf7fa /src | |
| parent | 665ec8946df0e09dec703d7ee3909be6056141db (diff) | |
| download | emacs-02054d9cd1f5c6a5ca3555207235522532477e10.tar.gz emacs-02054d9cd1f5c6a5ca3555207235522532477e10.zip | |
* Improve 'maybe_defer_native_compilation'
* src/comp.c (maybe_defer_native_compilation): Always store the
function name in Vcomp_deferred_pending_h if pending for deferred
compilation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp.c b/src/comp.c index 5efe026b2b2..251613dc3d4 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -5127,13 +5127,14 @@ maybe_defer_native_compilation (Lisp_Object function_name, | |||
| 5127 | return; | 5127 | return; |
| 5128 | } | 5128 | } |
| 5129 | 5129 | ||
| 5130 | Fputhash (function_name, definition, Vcomp_deferred_pending_h); | ||
| 5131 | |||
| 5130 | /* This is so deferred compilation is able to compile comp | 5132 | /* This is so deferred compilation is able to compile comp |
| 5131 | dependencies breaking circularity. */ | 5133 | dependencies breaking circularity. */ |
| 5132 | if (comp__compilable) | 5134 | if (comp__compilable) |
| 5133 | { | 5135 | { |
| 5134 | /* Startup is done, comp is usable. */ | 5136 | /* Startup is done, comp is usable. */ |
| 5135 | CALL0I (startup--require-comp-safely); | 5137 | CALL0I (startup--require-comp-safely); |
| 5136 | Fputhash (function_name, definition, Vcomp_deferred_pending_h); | ||
| 5137 | CALLN (Ffuncall, intern_c_string ("native--compile-async"), | 5138 | CALLN (Ffuncall, intern_c_string ("native--compile-async"), |
| 5138 | src, Qnil, Qlate); | 5139 | src, Qnil, Qlate); |
| 5139 | } | 5140 | } |