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

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

bug#46617: 28.0.50; nativecomp: native compile cache is not invalidated


From: Andrea Corallo
Subject: bug#46617: 28.0.50; nativecomp: native compile cache is not invalidated when file is re-byte compiled and changes
Date: Mon, 22 Mar 2021 07:57:40 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Aaron Jensen <aaronjensen@gmail.com> writes:

> On Sun, Mar 21, 2021 at 3:54 PM Andrea Corallo <akrl@sdf.org> wrote:
>>
>> Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
>> text editors" <bug-gnu-emacs@gnu.org> writes:
>>
>>
>> Okay I've added `comp-lookup-eln' son now the user can search if a
>> certain .eln is in reach in `comp-eln-load-path' for a given .el.
>>
>> So now one can use the following to force a native load.
>>
>> (load (comp-lookup-eln ".../foo.el"))
>
> Okay, and that would return nil if it's not native compiled, which
> would be their cue to native compile it, yes?

Yes `comp-lookup-eln' will return nil if the eln is not found.

> That's nice to be able
> to force load it.
>
> Without doing the modification date stuff you mentioned or purge
> before byte compile, native compilation ends up having to be a concern
> of anything that's doing byte compiling, which is unfortunate.

Say anything that's doing byte compiling deliberately capturing
environment values yes.

  Andrea

> Ideally
> Straight.el could just change to doing a (load "foo") after the
> explicit byte compile and get the automatic async native compilation.
> They could also do a delete file if the result of comp-lookup-eln
> exists, prior to or just after byte compiling, then at least they
> won't have to native compile synchronously.
>
> Thanks,
>
> Aaron





reply via email to

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