From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbKHG-0007Xe-Se for qemu-devel@nongnu.org; Wed, 21 Nov 2012 19:04:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbKHF-0000eU-IE for qemu-devel@nongnu.org; Wed, 21 Nov 2012 19:04:22 -0500 Received: from mout.web.de ([212.227.15.4]:52944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbKHF-0000c5-8t for qemu-devel@nongnu.org; Wed, 21 Nov 2012 19:04:21 -0500 Message-ID: <50AD6BFC.9090703@web.de> Date: Thu, 22 Nov 2012 01:04:12 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1353083843-17175-1-git-send-email-peter.maydell@linaro.org> <50A78ACF.8070206@web.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] configure: Default to 'cc', not 'gcc', on MacOS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Anthony Liguori , qemu-devel@nongnu.org, patches@linaro.org Am 22.11.2012 00:19, schrieb Peter Maydell: > On 17 November 2012 13:10, Peter Maydell wrote: >> On 17 November 2012 13:02, Andreas Färber wrote: >>> Am 16.11.2012 17:37, schrieb Peter Maydell: >>>> +if test "$(uname -s)" = "Darwin"; then >>>> + # On MacOS X the standard supported system compiler is 'cc' (usually clang), >>>> + # and 'gcc' is a legacy llvm-gcc which is rather elderly and best avoided. >>> >>> This comment strikes me as wrong in this generality. It should at least >>> be qualified with OSX version numbers. >> >> How about "and if 'gcc' is not the same as 'cc' then it is a legacy llvm-gcc >> which is rather elderly and best avoided" ? I'd rather not get into having >> to research which versions of OSX shipped with which compiler as 'cc', >> when really the point is that 'cc' will always give you whichever compiler >> Apple thought was the best default for that version. > > Andreas: ping? are you happy with this suggested rephrasing? Not quite... clang is a relatively new thing. On v10.5.8 ppc64 'cc' is a symlink to a real (well, Apple-flavoured) 'gcc-4.0'. What about "... (clang on recent systems) and 'gcc' may be a legacy llvm-gcc ..."? > Do you > think this is 1.3 material? (now the static-stublib stuff is in it's > less critical, but it still seems like the right idea...) I wouldn't be opposed to taking the default change into 1.3 as long as we can still override it to a specific compiler. But then again there's the question of why not doing it on Linux as well now that we seem to compile under clang, we have cc -> gcc-4.7 on openSUSE 12.2. Among our supported platforms only Solaris comes to my mind where cc might be an incompatible proprietary compiler. Andreas