help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs uses "global" compiler instead of embedded


From: Eli Zaretskii
Subject: Re: Emacs uses "global" compiler instead of embedded
Date: Thu, 29 Sep 2022 19:34:39 +0300

> From: Bartosz Bubak <bartosz.bubak@gmail.com>
> Date: Thu, 29 Sep 2022 18:12:53 +0200
> Cc: help-gnu-emacs@gnu.org
> 
> > 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.

Didn't you say that if you remove the GCC installation in
C:\Program Files\Emacs\emacs-28.2\, everything starts working?

> In my opinion, the problem is that emacs does not consider local folders
> when it looks for the compiler.

It doesn't, and it shouldn't.

> 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.

AFAIU, it isn't Emacs that looks for GCC, it's libgccjit DLL.  So
maybe just removing libgccjit DLL that came with Emacs will solve your
problem.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]