From: Robin Putters <robin.putters@keronic.com>
To: 54766@debbugs.gnu.org
Subject: bug#54766: [PATCH] 28.1.0; Native comp: Inherit working directory for sub processes (MS Windows)
Date: Thu, 7 Apr 2022 14:35:57 +0000 [thread overview]
Message-ID: <DBAPR10MB4204B859C1CE03270DDB47C5F5E69@DBAPR10MB4204.EURPRD10.PROD.OUTLOOK.COM> (raw)
[-- Attachment #1: Type: text/plain, Size: 369 bytes --]
On MS Windows systems, where the Emacs executable is typically not in the PATH, creating the async sub processes for the native compiler will fail because they are started in a random working directory. The included patch will inherit the working directory from the parent emacs process by setting default-directory before creating the sub process.
Robin Putters
[-- Attachment #2: Pat2409.diff --]
[-- Type: application/octet-stream, Size: 625 bytes --]
lisp/emacs-lisp/comp.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index a363bed..61968f4 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -3961,6 +3961,7 @@ display a message."
(comp-log "\n")
(mapc #'comp-log expr-strings)))
(load1 load)
+ (default-directory invocation-directory)
(process (make-process
:name (concat "Compiling: " source-file)
:buffer (with-current-buffer
next reply other threads:[~2022-04-07 14:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-07 14:35 Robin Putters [this message]
2022-04-07 16:08 ` bug#54766: [PATCH] 28.1.0; Native comp: Inherit working directory for sub processes (MS Windows) Eli Zaretskii
2022-04-23 17:16 ` Lars Ingebrigtsen
2022-05-22 11:27 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DBAPR10MB4204B859C1CE03270DDB47C5F5E69@DBAPR10MB4204.EURPRD10.PROD.OUTLOOK.COM \
--to=robin.putters@keronic.com \
--cc=54766@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.