From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: Speeding up the bootstrap build - a quick hack.
Date: Wed, 19 Jan 2022 19:03:46 +0200
Message-ID: <835yqfsln1.fsf@gnu.org>
References: <YeXQ4FszqwRcmD1v@ACM> <83pmopunzl.fsf@gnu.org>
 <jwvy23copq1.fsf-monnier+emacs@gnu.org> <83y23cu9bl.fsf@gnu.org>
 <YefxqJOoENL5x2XW@ACM>
 <835yqgt0bf.fsf@gnu.org> <YehBQy0b4Teq2nOU@ACM>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="9594"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
To: Alan Mackenzie <acm@muc.de>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 19 18:09:17 2022
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1nAESM-000280-Sc
	for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Jan 2022 18:09:10 +0100
Original-Received: from localhost ([::1]:33384 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1nAESL-0004C8-Jm
	for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Jan 2022 12:09:09 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:39730)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>) id 1nAENI-00067E-Ik
 for emacs-devel@gnu.org; Wed, 19 Jan 2022 12:03:56 -0500
Original-Received: from [2001:470:142:3::e] (port=43150 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1nAENC-00029J-Dh; Wed, 19 Jan 2022 12:03:55 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Q4A+JWLkZIfrQi7Le8SrbmyYvdNRtdwJhxPzw9v8O60=; b=ODnFznbaaUyF
 +cw8zKumma0a0bu35viMsyEVNjAtskEV5TaZ1xw6xFSQwy1mmFj2q30xnd7ft+fpvmFTMluO0NvXw
 FcCxFkVe8RzQsjqEiDm9jVcpK/MPVjfCBNpYIxp5Rp8e2DjF2EbpTVSsJw/6L+O8odNUBlb+BqKEK
 F/+FD3DjIsec8no7z1PAZwrZc3TPh2pYb6go09bFHcaEACGezw+MDoKH5hbhItoyfCq6HmaNiMXr3
 1TBNDEXqV6xRkdckqpM/qy1i+OUauKFIdB3d0kRVFNkvM0waL7wCzh13EwhNsVjyrdysauUa9TZ+O
 zjwyFqx06IgulSWlrcJ/cg==;
Original-Received: from [87.69.77.57] (port=4791 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1nAENC-0002t6-8w; Wed, 19 Jan 2022 12:03:50 -0500
In-Reply-To: <YehBQy0b4Teq2nOU@ACM> (message from Alan Mackenzie on Wed, 19
 Jan 2022 16:50:11 +0000)
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:284995
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/284995>

> Date: Wed, 19 Jan 2022 16:50:11 +0000
> Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
> From: Alan Mackenzie <acm@muc.de>
> 
> The idea is to leave lisp/Makefile.in unchanged, and make all the
> alterations in src/Makefile.in.
> 
> The segment of code you cite above builds all of compile-first in one
> invocation, so there's no need to worry about mixtures of interpreted
> source and .elc.
> 
> So, we duplicate that bit of code, setting the Emacs variable
> no-native-compile on the command line of the first occurrence.  This
> will cause the byte compilation of all of compile-first.
> 
> After this bit of new code, we use 'touch' to set the date of these new
> *.elc's back to the distant past.  This will ensure that these *.el's
> get built again in the next step.
> 
> The second duplicate of the old bit of make code will build the .eln's,
> using the ("very old") .elc's which are still available inside Emacs.
> It should do this reasonably quickly, because it is using *.elc's.

Yes, that's the idea.

> Yes, I agree that this approach is more elegant and surely easier to
> maintain than my original hack, if it can be made to work (which it
> surely can).  I will look at this this evening.  Thanks for the
> suggestion.

Thank you.