]> git.eshelyaron.com Git - emacs.git/commitdiff
* Improve 'maybe_defer_native_compilation'
authorAndrea Corallo <akrl@sdf.org>
Tue, 1 Feb 2022 16:58:47 +0000 (17:58 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 1 Feb 2022 17:05:51 +0000 (18:05 +0100)
* src/comp.c (maybe_defer_native_compilation): Always store the
function name in Vcomp_deferred_pending_h if pending for deferred
compilation.

src/comp.c

index 5efe026b2b2a812ce773346acbf25d2f998094eb..251613dc3d426e313cc30447f0d7616dd14f748d 100644 (file)
@@ -5127,13 +5127,14 @@ maybe_defer_native_compilation (Lisp_Object function_name,
        return;
     }
 
+  Fputhash (function_name, definition, Vcomp_deferred_pending_h);
+
   /* This is so deferred compilation is able to compile comp
      dependencies breaking circularity.  */
   if (comp__compilable)
     {
       /* Startup is done, comp is usable.  */
       CALL0I (startup--require-comp-safely);
-      Fputhash (function_name, definition, Vcomp_deferred_pending_h);
       CALLN (Ffuncall, intern_c_string ("native--compile-async"),
             src, Qnil, Qlate);
     }