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: Re: Speeding up the bootstrap build - a quick hack. Date: Wed, 19 Jan 2022 13:46:44 +0200 Message-ID: <835yqgt0bf.fsf@gnu.org> References: <83pmopunzl.fsf@gnu.org> <83y23cu9bl.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20460"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 19 13:01: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 1nA9ex-00055Q-1b for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Jan 2022 13:01:51 +0100 Original-Received: from localhost ([::1]:59300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nA9eu-0006Ah-Br for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Jan 2022 07:01:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nA9Qh-0000Ly-SL for emacs-devel@gnu.org; Wed, 19 Jan 2022 06:47:08 -0500 Original-Received: from [2001:470:142:3::e] (port=34090 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 ) id 1nA9QO-0003mv-Kr; Wed, 19 Jan 2022 06:46:53 -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=3ssVRqaS2XIFIKdpxACR3wifdNozP7b4BR7f/JCk9Mo=; b=daF+T4i80xeS 5/OM66fWb7JGWXDuoihJHSoduB38DuPB6HV1ztGkz1+sE41FKhlbRYJvE+Y7FiuN1v+bZ2BnzHpCN YBGshIBynD3RzZc8hn3VMagmtnVaFbMPv3HnaJiXrzowxhn1mSqaJ/B0S5jXOV+YugT57+2hIr3rJ +I4JZvk9huKWuSZcvZsDVcUWhJ92CEXpehFNmSW0Z3IGqLX2C6QUKMFU5i+hWciXZT37impbqGkmY e7NmJUgiUO18vn7eSaAHe95aIJxMyEjVLSqEYIVZxPs3MOkCklISIAGochnGR+46qRjmEpuc6nln8 U/6+QNlLCo3ixUC/K+3JzA==; Original-Received: from [87.69.77.57] (port=4630 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 1nA9QO-0001ka-PL; Wed, 19 Jan 2022 06:46:49 -0500 In-Reply-To: (message from Alan Mackenzie on Wed, 19 Jan 2022 11:10:32 +0000) 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:284972 Archived-At: > Date: Wed, 19 Jan 2022 11:10:32 +0000 > Cc: Stefan Monnier , emacs-devel@gnu.org > From: Alan Mackenzie > > > No, we need two consecutive shell commands under the same target: one > > with no-native-compile set, the other without it. > > No, this would not work. It is essential to have all seven compile-first > files byte compiled before we start native compiling any of them. That > is what halves the time taken for the compile-to-native of comp.el. The following single command in src/Makefile.in $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)" compiles all of the seven dwarfs in one go, so I'm not sure what you mean by "would not work". Please elaborate. > I don't think we can avoid two separate targets for each of these source > files. I don't think you understood my proposal, because this reason makes no sense to me.