[Top][All Lists]

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

Re: Porting my conf to 28.0.60 (MS Windows + native-comp)

From: Eli Zaretskii
Subject: Re: Porting my conf to 28.0.60 (MS Windows + native-comp)
Date: Mon, 18 Oct 2021 15:16:31 +0300

> From: Corwin Brust <corwin@bru.st>
> Date: Sun, 17 Oct 2021 20:51:02 -0500
> Cc: Emacs developers <emacs-devel@gnu.org>
> ;; tweaks for native-comp
> ;; 
> https://ddavis.io/posts/emacs-native-centos7/#deferred-and-asynchronous-compilation
> ;; via https://github.com/jwiegley/emacs-async/issues/96
> ;; helper boolean I use here and later in my init.el
> (defconst my-using-native-comp
>   (and (not (version< emacs-version "28.0"))
>        (fboundp 'native-comp-available-p)
>        (native-comp-available-p))
>   "Indicates we are using native compilation (via libgccjit).")
> (when my-using-native-comp
>   (message "Native compilation is avialable; throttling")
>   (setq native-comp-deferred-compilation t)
>   (setq native-comp-async-query-on-exit t)
>   (setq native-comp-async-jobs-number 4)
>   (setq native-comp-async-report-warnings-errors nil))

I see nothing here that could cause Emacs to spawn too many child
processes for native-compilation: you limit the number of simultaneous
sub-processes to 4, which shouldn't be a problem.

So I still think you should try preparing a reproducer for that
strange error message.  When it happens, could you perhaps see how
many network connections does Emacs have (with, for example, netstat)?

reply via email to

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