[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
`batch-native-compile'.
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.
Andrea
- Re: Suppressing native compilation (short and long term), (continued)
- Re: Suppressing native compilation (short and long term), Eli Zaretskii, 2022/11/05
- Re: Suppressing native compilation (short and long term), Dr. Arne Babenhauserheide, 2022/11/05
- Re: Suppressing native compilation (short and long term), Andrea Corallo, 2022/11/07
- Re: Suppressing native compilation (short and long term), Björn Bidar, 2022/11/08
- Re: Suppressing native compilation (short and long term), Andrea Corallo, 2022/11/08
- Parallel native compilation, Björn Bidar, 2022/11/08
- Re: Parallel native compilation,
Andrea Corallo <=
- Re: Suppressing native compilation (short and long term), Eli Zaretskii, 2022/11/08
Re: Suppressing native compilation (short and long term), Juanma Barranquero, 2022/11/05