[Top][All Lists]

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

Re: Parallel native compilation

From: Andrea Corallo
Subject: Re: Parallel native compilation
Date: Tue, 08 Nov 2022 12:35:43 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Björn Bidar <bjorn.bidar@thaodan.de> writes:

> Andrea Corallo <akrl@sdf.org> writes:
>> Björn Bidar <bjorn.bidar@thaodan.de> writes:
>>> Andrea Corallo <akrl@sdf.org> writes:
>>>> Max Brieiev <max.brieiev@gmail.com> writes:
>>>>> "Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:
>>>>>> My ~/.emacs.d/ is actually versiontracked as part of my repository,
>>>>>> because emacs is my build tool to compile org-mode to PDF and I need a
>>>>>> reproducible environment so others can use it, too.
>>>>> If Emacs is your build tool, then you probably run it in a batch mode.
>>>>> I think in one of his messages Andrea said that native compiler is
>>>>> disabled when Emacs is run in batch mode.
>>>> Yep that's correct.
>>> But I think it possible to call `native-compile` in batch mode I think.
>>> I do this with borg to precompile all packages when I update them.
>> Yes that's correct, only the machanism that automatically triggers async
>> native compilations is disabled but you can still invoke compilations
>> manually.
> What is the suggested what of doing so in parallel?

You can do it from outside if you use N instanceses of Emacs leveraging

Another option would be to run one Emacs leveraging
`native-compile-async', but you'll have to add some simple custom code
to have Emacs wainting for all compilation to be finished before
exiting.  `native-comp-async-all-done-hook' might be of hand there.


reply via email to

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