From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Speeding up the bootstrap build - a quick hack. Date: Tue, 18 Jan 2022 14:04:35 +0000 Message-ID: References: <87pmopp4jy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5237"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 18 16:41:52 2022 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 1n9qcJ-0001Du-6k for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 16:41:51 +0100 Original-Received: from localhost ([::1]:40012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9qcI-0000FY-43 for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 10:41:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9p6H-0001jp-1R for emacs-devel@gnu.org; Tue, 18 Jan 2022 09:04:42 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:23055 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1n9p6E-0002cx-Hp for emacs-devel@gnu.org; Tue, 18 Jan 2022 09:04:40 -0500 Original-Received: (qmail 98337 invoked by uid 3782); 18 Jan 2022 14:04:35 -0000 Original-Received: from acm.muc.de (p4fe158ed.dip0.t-ipconnect.de [79.225.88.237]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 18 Jan 2022 15:04:35 +0100 Original-Received: (qmail 20941 invoked by uid 1000); 18 Jan 2022 14:04:35 -0000 Content-Disposition: inline In-Reply-To: <87pmopp4jy.fsf@gmail.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:284931 Archived-At: Hello, Robert. On Tue, Jan 18, 2022 at 14:16:33 +0100, Robert Pluim wrote: > >>>>> On Tue, 18 Jan 2022 11:56:38 +0000, Alan Mackenzie said: > >> > # An old-fashioned suffix rule, which, according to the GNU Make manual, > >> > # cannot have prerequisites. > >> > ifeq ($(HAVE_NATIVE_COMP),yes) > >> > -.el.elc: > >> > +.el.elc0: > >> > + $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \ > >> > + --exec "(setq load-suffixes '(\".elc0\" \".el\"))" \ > >> > + -f batch-byte-compile $< > >> > + mv $ I think this would be far cleaner and less fragile if you used an > order-only prerequisite instead of inventing new suffixes. Thanks for the reply. I'm not actually that experienced with make files. What does "an orer-only prerequisite" mean? There was a problem with the current situation where the existence of a ..elc file prevented the native compiler from working. So I renamed these early files to .elc0, to prevent them getting in the way. How might I do this better? > Robert > -- -- Alan Mackenzie (Nuremberg, Germany).