This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: regression hunt setup using Subversion


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]