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

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

bug#48743: 28.0.50; batch-native-compile should produce .elc files as we


From: Andrea Corallo
Subject: bug#48743: 28.0.50; batch-native-compile should produce .elc files as well
Date: Mon, 31 May 2021 16:56:51 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Andrea Corallo <akrl@sdf.org>
>> Cc: "T.V Raman" <raman@google.com>, 48743@debbugs.gnu.org
>> Date: Mon, 31 May 2021 13:41:28 +0000
>> 
>> yes I'm following this thread, trying ATM to make my mind on what's the
>> real issue.
>
> Thanks.  Let me try helping you understand what I think is the issue
> here.
>
> Suppose you are maintaining a Lisp package which includes a Makefile
> used to byte-compile all the Lisp files as part of the installation
> procedure of the package.  This Makefile has targets and dependencies
> that build *.elc files from *.el files.  How do you modify the
> Makefile to produce *.eln files during the build, while maintaining
> the dependencies between the Lisp files? the dependencies would mean
> that when file1.el is modified, you need to recompile not only that
> file1.el, but also file2.el and file3.el.  How do you get new
> file2.eln and file3.eln via Makefile rules in this case?
>
> I hope I succeeded to explain the issue.

I see thanks.

I think the way to do it is to proceed as we do in the current Emacs
build that is; express to make only the .elc targets and produce them
using `batch-byte-native-compile-for-bootstrap'.

This is like `batch-byte-native-compile' but produces also the .elc
files.

At this point if packages wants to use this function we should probably
rename it as is not anymore in use only for our build process.

Does this make sense?

Thanks

  Andrea





reply via email to

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