aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorVibhav Pant2020-08-21 14:04:35 +0530
committerVibhav Pant2020-08-21 14:04:35 +0530
commitf0f8d7b82492e741950c363a03b886965c91b1b0 (patch)
tree19b716830b1ebabc0d7d75949c4e6800c0f104ad /lisp/emacs-lisp/bytecomp.el
parent9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff)
parentc818c29771d3cb51875643b2f6c894073e429dd2 (diff)
downloademacs-feature/native-comp-macos-fixes.tar.gz
emacs-feature/native-comp-macos-fixes.zip
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r--lisp/emacs-lisp/bytecomp.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 20a481a8a1c..507cfe76ffa 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -2041,7 +2041,8 @@ The value is non-nil if there were no errors, nil if errors."
2041 (with-current-buffer output-buffer 2041 (with-current-buffer output-buffer
2042 (goto-char (point-max)) 2042 (goto-char (point-max))
2043 (insert "\n") ; aaah, unix. 2043 (insert "\n") ; aaah, unix.
2044 (if (file-writable-p target-file) 2044 (if (or (file-writable-p target-file)
2045 byte-native-compiling)
2045 ;; We must disable any code conversion here. 2046 ;; We must disable any code conversion here.
2046 (progn 2047 (progn
2047 (let* ((coding-system-for-write 'no-conversion) 2048 (let* ((coding-system-for-write 'no-conversion)
@@ -2050,7 +2051,8 @@ The value is non-nil if there were no errors, nil if errors."
2050 ;; parallel bootstrap), it does not risk getting a 2051 ;; parallel bootstrap), it does not risk getting a
2051 ;; half-finished file. (Bug#4196) 2052 ;; half-finished file. (Bug#4196)
2052 (tempfile 2053 (tempfile
2053 (make-temp-file (expand-file-name target-file))) 2054 (make-temp-file (when (file-writable-p target-file)
2055 (expand-file-name target-file))))
2054 (default-modes (default-file-modes)) 2056 (default-modes (default-file-modes))
2055 (temp-modes (logand default-modes #o600)) 2057 (temp-modes (logand default-modes #o600))
2056 (desired-modes (logand default-modes #o666)) 2058 (desired-modes (logand default-modes #o666))