all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Building a tarball with native-compilation support
@ 2021-08-05  6:25 Eli Zaretskii
  2021-08-05 21:55 ` Andrea Corallo via Emacs development discussions.
  0 siblings, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2021-08-05  6:25 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: Lars Ingebrigtsen, emacs-devel

I think we have an unsolved issue for when we will release an Emacs
tarball that supports native-compilation: how to compile the preloaded
*.el files natively at build time.  This has to be done on the machine
where the tarball is built, because the *.eln files are
architecture-dependent, and thus cannot be in the source tarball.

Currently, compiling the preloaded *.el into *.eln is a side effect of
byte-compilation, so a new .eln file is produced when the *.el file is
newer than the corresponding .elc file, which causes Make to invoke
the byte+native-compilation.  But in a release tarball, all *.elc
files are newer than the corresponding *.el files, so this Make rule
will not be triggered, and the *.eln files will not be produced.  So
Emacs will be dumped with byte-compiled *.elc files, which is not what
we want, I think.

So unless I'm missing something, we need some Make wizardry to trigger
native-compilation at build time, even if the corresponding *.elc
files don't need to be re-generated.

Comments?



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-08-27 13:33 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-05  6:25 Building a tarball with native-compilation support Eli Zaretskii
2021-08-05 21:55 ` Andrea Corallo via Emacs development discussions.
2021-08-06  6:05   ` Eli Zaretskii
2021-08-06 14:37     ` Stefan Monnier
2021-08-06 17:41       ` Eli Zaretskii
2021-08-07 13:28         ` Stefan Monnier
2021-08-07 13:35           ` Eli Zaretskii
2021-08-07  6:23     ` Eli Zaretskii
2021-08-07  6:48       ` Eli Zaretskii
2021-08-07 10:32         ` Eli Zaretskii
2021-08-14  7:44           ` Eli Zaretskii
2021-08-17 10:16             ` Andrea Corallo via Emacs development discussions.
2021-08-17 11:44               ` Eli Zaretskii
2021-08-17 21:49                 ` Andrea Corallo via Emacs development discussions.
2021-08-18 13:17                   ` Eli Zaretskii
2021-08-18 15:03                     ` Andrea Corallo via Emacs development discussions.
2021-08-26 13:42                     ` Eli Zaretskii
2021-08-27 13:33                       ` Andrea Corallo via Emacs development discussions.

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.