all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andrea Corallo <akrl@sdf.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, emacs-devel@gnu.org
Subject: Building a tarball with native-compilation support
Date: Thu, 05 Aug 2021 09:25:33 +0300	[thread overview]
Message-ID: <83r1f8jtlu.fsf@gnu.org> (raw)

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?



             reply	other threads:[~2021-08-05  6:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05  6:25 Eli Zaretskii [this message]
2021-08-05 21:55 ` Building a tarball with native-compilation support 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.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83r1f8jtlu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=akrl@sdf.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.