[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 377ffdb 05/12: * Do not fail if more then one level
From: |
Andrea Corallo |
Subject: |
feature/native-comp 377ffdb 05/12: * Do not fail if more then one level of directories has to be created |
Date: |
Mon, 17 Aug 2020 13:12:10 -0400 (EDT) |
branch: feature/native-comp
commit 377ffdb528e75f7e02be5f0305cdf326da0dc451
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
- feature/native-comp updated (f2e6168 -> 76faab2), Andrea Corallo, 2020/08/17
- feature/native-comp 88b860e 02/12: Make comp-deferred-compilation a simple global and set it on by default, Andrea Corallo, 2020/08/17
- feature/native-comp df774c4 04/12: * Prevent recursive load, Andrea Corallo, 2020/08/17
- feature/native-comp 3224a44 01/12: Move eln files into dedicated cache directories, Andrea Corallo, 2020/08/17
- feature/native-comp 377ffdb 05/12: * Do not fail if more then one level of directories has to be created,
Andrea Corallo <=
- feature/native-comp b6238d8 06/12: * Deferred compilation must always compile despite source file timestamp, Andrea Corallo, 2020/08/17
- feature/native-comp 40de063 09/12: * Remove a false permission related error while native compiling, Andrea Corallo, 2020/08/17
- feature/native-comp dbeafd3 03/12: Some Makefile updates and clean-up, Andrea Corallo, 2020/08/17
- feature/native-comp 171db31 07/12: Make install target functional for new eln-cache directory arrangement, Andrea Corallo, 2020/08/17
- feature/native-comp da54406 08/12: Allow for native compiling .el.gz files, Andrea Corallo, 2020/08/17
- feature/native-comp 142cfe9 10/12: * Introduce `load-no-native', Andrea Corallo, 2020/08/17
- feature/native-comp 114b1d8 11/12: * test/src/comp-tests.el (comp-tests-bootstrap): Fix test for new eln setup., Andrea Corallo, 2020/08/17
- feature/native-comp 76faab2 12/12: * Improve eln filename hashing, Andrea Corallo, 2020/08/17