From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Building a tarball with native-compilation support Date: Thu, 05 Aug 2021 09:25:33 +0300 Message-ID: <83r1f8jtlu.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35259"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 05 08:26:32 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBWpr-00092C-KD for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Aug 2021 08:26:31 +0200 Original-Received: from localhost ([::1]:45694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBWpq-00054I-4F for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Aug 2021 02:26:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBWoz-0004O3-Mj for emacs-devel@gnu.org; Thu, 05 Aug 2021 02:25:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56358) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBWoy-0007Wa-FJ; Thu, 05 Aug 2021 02:25:36 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1508 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBWoy-0005OH-2V; Thu, 05 Aug 2021 02:25:36 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272073 Archived-At: 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?