mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 23:10:47 -08:00
* Fix native-compile-async for bug#40602.
* lisp/emacs-lisp/comp.el (native-compile-async): Relax coherency condition.
This commit is contained in:
parent
517c123fd4
commit
9f42f35418
1 changed files with 7 additions and 3 deletions
|
|
@ -2311,9 +2311,13 @@ LOAD can be nil t or 'late."
|
|||
(list "Path not a file nor directory" path)))))
|
||||
(dolist (file files)
|
||||
(if-let ((entry (cl-find file comp-files-queue :key #'car :test #'string=)))
|
||||
(cl-assert (eq load (cdr entry))
|
||||
nil "Incoherent load kind in compilation queue for %s"
|
||||
file)
|
||||
(when load
|
||||
;; When no load is specified (plain async compilation) we
|
||||
;; consider valid the one previously queued, otherwise we
|
||||
;; check for coherence (bug#40602).
|
||||
(cl-assert (eq load (cdr entry))
|
||||
nil "Incoherent load kind in compilation queue for %s"
|
||||
file))
|
||||
(setf comp-files-queue (append comp-files-queue `((,file . ,load))))))
|
||||
(when (zerop (comp-async-runnings))
|
||||
(comp-run-async-workers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue