From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bootstrap compiles C files twice Date: Tue, 03 Jun 2008 01:26:23 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212470811 20656 80.91.229.12 (3 Jun 2008 05:26:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2008 05:26:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 03 07:27:33 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K3P3R-0000wW-90 for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 07:27:29 +0200 Original-Received: from localhost ([127.0.0.1]:32916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3P2e-0007hg-Mp for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 01:26:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3P2W-0007hE-Rl for emacs-devel@gnu.org; Tue, 03 Jun 2008 01:26:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3P2T-0007gg-MX for emacs-devel@gnu.org; Tue, 03 Jun 2008 01:26:30 -0400 Original-Received: from [199.232.76.173] (port=44299 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3P2T-0007gd-DP for emacs-devel@gnu.org; Tue, 03 Jun 2008 01:26:29 -0400 Original-Received: from 206-248-132-168.dsl.teksavvy.com ([206.248.132.168]:55836 helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3P2O-0003gT-MO; Tue, 03 Jun 2008 01:26:25 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 384DDB423C; Tue, 3 Jun 2008 01:26:23 -0400 (EDT) In-Reply-To: (Glenn Morris's message of "Mon, 02 Jun 2008 23:20:07 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Greylist: delayed 113847 seconds by postgrey-1.27 at monty-python; Tue, 03 Jun 2008 01:26:24 EDT X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:98273 Archived-At: > Can anyone explain why `mostlyclean' is called after compiling the > lisp files? Things seem to work fine (and obviously more quickly) > without doing this. I do not have an answer for that. I was also surprised when this was done (when I originally worked on the bootstrap code to remove the .elc files from the CVS repository, I didn't force regeneration of the .o and temacs file and I cannot remember any bug report about it). But recently someone mentioned the issue of cross-compiling and in this context it makes sense: the bootstrap-emacs (and its temacs) should be compiled for the host platform so we can generate the .elc files, and then the final `emacs' (and its `temacs') need to be compiled for the target platform. Not that cross-compiling is a common occurrence (it's definitely not supported out-of-the-box for example). Stefan "who rarely bootstraps anyway"