emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/native-comp 1f3ba65 10/11: * Do not crash if the output director


From: Andrea Corallo
Subject: feature/native-comp 1f3ba65 10/11: * Do not crash if the output directory is created in the meanwhile
Date: Wed, 4 Mar 2020 12:08:32 -0500 (EST)

branch: feature/native-comp
commit 1f3ba658fccdb0b35bdbbdfeb8591dba72ee983f
Author: AndreaCorallo <address@hidden>
Commit: Andrea Corallo <address@hidden>

    * 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 342faa2..f16aa59 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))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]