[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))))
- feature/native-comp updated (0cef208 -> 6487d4a), Andrea Corallo, 2020/03/04
- feature/native-comp 8788fab 03/11: ; Nit fix in comment, Andrea Corallo, 2020/03/04
- feature/native-comp ce9e3a4 05/11: Introduce 'effective_load_path', Andrea Corallo, 2020/03/04
- feature/native-comp 0da62d9 01/11: Change parameter name into comp--compile-ctxt-to-file, Andrea Corallo, 2020/03/04
- feature/native-comp 2dae7e1 02/11: Add system-configuration in the compilation output path, Andrea Corallo, 2020/03/04
- feature/native-comp d0066e3 04/11: * Keep comp-subr-list into pure space, Andrea Corallo, 2020/03/04
- feature/native-comp bf4f620 06/11: * ; Clean-up out of date comment, Andrea Corallo, 2020/03/04
- feature/native-comp 43b6f05 09/11: Hash eln ABI once and add it to the output compilation path, Andrea Corallo, 2020/03/04
- feature/native-comp f77f6ca 08/11: Fix org for eln new compilation folder layout, Andrea Corallo, 2020/03/04
- feature/native-comp 1f3ba65 10/11: * Do not crash if the output directory is created in the meanwhile,
Andrea Corallo <=
- feature/native-comp 286e21c 07/11: Rework `find-lisp-object-file-name', Andrea Corallo, 2020/03/04
- feature/native-comp 6487d4a 11/11: Merge remote-tracking branch 'savannah/master' into HEAD, Andrea Corallo, 2020/03/04