regression hunt setup using Subversion
Shantonu Sen
ssen@opendarwin.org
Fri Oct 21 21:04:00 GMT 2005
if sysctl is present in the path, "sysctl hw.ncpu" might be useful as
well. Seems to work on FreeBSD and Darwin, assuming you don't require
granularity of whether those CPUs are HTT or not.
Shantonu
On Oct 21, 2005, at 12:27 PM, Janis Johnson wrote:
> On Fri, Oct 21, 2005 at 03:14:47PM -0400, Andrew Pinski wrote:
>>
>> On Oct 21, 2005, at 3:11 PM, Joseph S. Myers wrote:
>>
>>> The use of
>>>
>>> ncpu=`grep '^processor' /proc/cpuinfo | wc -l`
>>>
>>> seems Linux-specific; this looks like it should be in gcc-svn-env
>>> as a
>>> default for the user to customise, rather than in bin/gcc-build-*.
>>
>>
>> I don't think it is Linux specific, it works on my openBSD box. It
>> might
>> work on other OS's which have /proc on it too like Solaris.
>
> I was afraid of this, which is why before I only submitted the
> toplevel
> scripts for contrib/ and let people provide their own build scripts.
> I'm happy to make things more portable, though, as long as people
> provide suggestions like this; thanks.
>
> Janis
More information about the Gcc
mailing list