unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bartosz Bubak <bartosz.bubak@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs uses "global" compiler instead of embedded
Date: Thu, 29 Sep 2022 18:12:53 +0200	[thread overview]
Message-ID: <CAFH7cOqEgofxGTBapj=nr-LKwew9b9Zn+rPWC6sCnF1BnH16EA@mail.gmail.com> (raw)
In-Reply-To: <jwvbkqy9vcx.fsf-monnier+emacs@gnu.org>

Hi,
> I don't know: the description he gave suggests that the Emacs package he
> installed included a GCC ("embedded"), in which case that package should
> make sure that Emacs uses this bundled GCC rather than any other GCC
> that may be found on the system.

> But maybe I simply misunderstood what he meant by:

Yes, you understood me well.

> M-: (executable-find "gcc") RET
"c:/ProgramData/chocolatey/bin/gcc.exe
> M-: (executable-find "as") RET
"c:/ProgramData/chocolatey/bin/as.exe"

This is problem, it should be:
C:\Program Files\Emacs\emacs-28.2\bin\gcc.exe
C:\Program Files\Emacs\emacs-28.2\bin\as.exe

On the other hand, I don't want all the rest of the tools in the system to
use this installation, so changing global PATH is pointless.

That's what I'm explaining from the beginning, I have only one MinGW
instance, in chocolatey.
The second is installed and configured automatically by the emacs installer
and that is what emacs should use.
Not my "main" in the system.
In my opinion, the problem is that emacs does not consider local folders
when it looks for the compiler.
Should look in:
1) Local directories,
if not found
2) Global system configuration
And it does the opposite, only when gcc is missing in global configuration
it uses local.

P.S. By mistake I sent the previous response only to Eli instead to group :(


  reply	other threads:[~2022-09-29 16:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-28 20:22 Emacs uses "global" compiler instead of embedded Bartosz Bubak
2022-09-29  3:13 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-09-29  6:21   ` Eli Zaretskii
2022-09-29 13:16     ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-09-29 16:12       ` Bartosz Bubak [this message]
2022-09-29 16:34         ` Eli Zaretskii
2022-09-30  8:02           ` Bartosz Bubak
2022-09-30 10:26             ` Eli Zaretskii
2022-09-29  5:51 ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFH7cOqEgofxGTBapj=nr-LKwew9b9Zn+rPWC6sCnF1BnH16EA@mail.gmail.com' \
    --to=bartosz.bubak@gmail.com \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).