From 1f3ba658fccdb0b35bdbbdfeb8591dba72ee983f Mon Sep 17 00:00:00 2001 From: AndreaCorallo Date: Tue, 3 Mar 2020 23:06:46 +0000 Subject: [PATCH] * Do not crash if the output directory is created in the meanwhile --- lisp/emacs-lisp/comp.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 342faa2879e..f16aa59dc5e 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -2013,7 +2013,9 @@ Prepare every function for final compilation and drive the C back-end." (let ((dir (file-name-directory name))) (comp-finalize-relocs) (unless (file-exists-p dir) - (make-directory dir)) + ;; In case it's created in the meanwhile. + (ignore-error 'file-already-exists + (make-directory dir))) (unless comp-dry-run (comp--compile-ctxt-to-file name)))) -- 2.39.5