[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/native-comp-eln-caches ade825b 5/6: * Do not fail if more then o
From: |
Andrea Corallo |
Subject: |
scratch/native-comp-eln-caches ade825b 5/6: * Do not fail if more then one level of directories has to be created |
Date: |
Sat, 15 Aug 2020 14:57:19 -0400 (EDT) |
branch: scratch/native-comp-eln-caches
commit ade825bafc904afc5231c0b5a9e4fecfb881ddc7
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* Do not fail if more then one level of directories has to be created
* lisp/emacs-lisp/comp.el (native-compile-async): Call
make-directory if necessary.
---
lisp/emacs-lisp/comp.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 99bf30a..8024665 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -2748,9 +2748,9 @@ queued with LOAD %"
comp-deferred-compilation-black-list)))
(let* ((out-filename (comp-el-to-eln-filename file))
(out-dir (file-name-directory out-filename)))
- (if (or (file-writable-p out-filename)
- (and (not (file-exists-p out-dir))
- (file-writable-p (substring out-dir 0 -1))))
+ (unless (file-exists-p out-dir)
+ (make-directory out-dir t))
+ (if (file-writable-p out-filename)
(setf comp-files-queue
(append comp-files-queue `((,file . ,load))))
(display-warning 'comp
- branch scratch/native-comp-eln-caches created (now 19a9ecf), Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches 0a824d8 1/6: Move eln files into dedicated cache directories, Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches 0266246 2/6: Make comp-deferred-compilation a simple global and set it on by default, Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches f319c09 4/6: * Prevent recursive load, Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches ade825b 5/6: * Do not fail if more then one level of directories has to be created,
Andrea Corallo <=
- scratch/native-comp-eln-caches d0f67ec 3/6: Some Makefile updates and clean-up, Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches 19a9ecf 6/6: * Deferred compilation must always compile despite source file timestamp, Andrea Corallo, 2020/08/15