aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Corallo2020-03-15 21:07:14 +0000
committerAndrea Corallo2020-03-16 22:56:36 +0000
commitea8864fb672a7ff2d1da1b91885239f60e16b359 (patch)
treeb6b05eda5148f6b3a752783a40c2b9f6f196d27d
parent0b28bf0529cc6e6125924cc54ba8de30f3872ab9 (diff)
downloademacs-ea8864fb672a7ff2d1da1b91885239f60e16b359.tar.gz
emacs-ea8864fb672a7ff2d1da1b91885239f60e16b359.zip
* comp.el: (native-compile-async) do not duplicate queue entries
-rw-r--r--lisp/emacs-lisp/comp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 68d3b8b2c73..c00a68307b0 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -2229,7 +2229,8 @@ of given directories."
2229 ((file-exists-p path) (push path files)) 2229 ((file-exists-p path) (push path files))
2230 (t (signal 'native-compiler-error 2230 (t (signal 'native-compiler-error
2231 (list "Path not a file nor directory" path))))) 2231 (list "Path not a file nor directory" path)))))
2232 (setf comp-files-queue (nconc files comp-files-queue)) 2232 (dolist (file files)
2233 (add-to-list 'comp-files-queue file t))
2233 (when (zerop (comp-async-runnings)) 2234 (when (zerop (comp-async-runnings))
2234 (comp-run-async-workers)) 2235 (comp-run-async-workers))
2235 (message "Compilation started."))) 2236 (message "Compilation started.")))