From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fd7Pt-00046S-2V for qemu-devel@nongnu.org; Mon, 08 May 2006 11:12:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fd7Ps-00045E-Gp for qemu-devel@nongnu.org; Mon, 08 May 2006 11:12:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd7Ps-00044z-CO for qemu-devel@nongnu.org; Mon, 08 May 2006 11:12:56 -0400 Received: from [128.8.10.163] (helo=po1.wam.umd.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fd7Qj-0002O8-M5 for qemu-devel@nongnu.org; Mon, 08 May 2006 11:13:49 -0400 Received: from jbrown.mylinuxbox.org (jma-box.student.umd.edu [129.2.253.219]) by po1.wam.umd.edu (8.12.11.20060308/8.12.10) with ESMTP id k48FCsZx020753 for ; Mon, 8 May 2006 11:12:54 -0400 (EDT) Date: Mon, 8 May 2006 11:12:54 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] -cc checking wrong Message-ID: <20060508151254.GA10640@jbrown.mylinuxbox.org> References: <87aca2qjj9.fsf@Janik.cz> <87d5eppicn.fsf@Janik.cz> <20060508001855.GA15033@jbrown.mylinuxbox.org> <20060508003411.GB15033@jbrown.mylinuxbox.org> <87d5epnec3.fsf@Janik.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d5epnec3.fsf@Janik.cz> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, May 08, 2006 at 09:52:12AM +0200, Pavel Jan?k wrote: > From: "Jim C. Brown" > Date: Sun, 7 May 2006 20:34:11 -0400 > > > The right thing to do might be to check if the first arg is ccache, > > and if so check for both ccache and the 2nd compiler. Especially if > > ccache is the only compiler that requires arguments be passed to it > > in --cc or CC= > > This is also wrong - you can use "distcc ccache gcc" as your compiler... Hmm. Maybe make the check into a function, and if the first arg is distcc or ccache, check that the first arg is -x and then call the function recursively with the remaining args. Else just check if the compiler exists. > -- > Pavel Jan?k > > Sounds like a "bug waiting to be implemented" ;) > -- Rik van Riel in linux-kernel > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.