]> git.eshelyaron.com Git - emacs.git/commitdiff
* comp.el: (native-compile-async) do not duplicate queue entries
authorAndrea Corallo <akrl@sdf.org>
Sun, 15 Mar 2020 21:07:14 +0000 (21:07 +0000)
committerAndrea Corallo <akrl@sdf.org>
Mon, 16 Mar 2020 22:56:36 +0000 (22:56 +0000)
lisp/emacs-lisp/comp.el

index 68d3b8b2c7321f4eb1cd7eaf339d861c5f1a9730..c00a68307b097e3247634007a83eda037a45b686 100644 (file)
@@ -2229,7 +2229,8 @@ of given directories."
             ((file-exists-p path) (push path files))
             (t (signal 'native-compiler-error
                        (list "Path not a file nor directory" path)))))
-    (setf comp-files-queue (nconc files comp-files-queue))
+    (dolist (file files)
+      (add-to-list 'comp-files-queue file t))
     (when (zerop (comp-async-runnings))
       (comp-run-async-workers))
     (message "Compilation started.")))