changeset 290:06cf8f61bf93

Tell distcc an SMP system has 1 more CPU than it actually has.
author Rob Landley <rob@landley.net>
date Fri, 01 Feb 2008 05:43:51 -0600
parents 7c5c4fced04c
children 94ee6e94a574
files include.sh
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/include.sh	Thu Jan 31 04:05:09 2008 -0600
+++ b/include.sh	Fri Feb 01 05:43:51 2008 -0600
@@ -290,8 +290,7 @@
   PATH="$(readlink -f "$2/distcc")" "$DCC" --listen 127.0.0.1 --log-stderr \
   --log-level error --daemon -a 127.0.0.1 --no-detach & # 2>/dev/null
   DCC1=/tools/distcc:
-  CPUS=$[$(echo /sys/devices/system/cpu/cpu[0-9]* | wc -w)+0]
-  [ "$CPUS" -lt 1 ] && CPUS=1
+  CPUS=$[$(echo /sys/devices/system/cpu/cpu[0-9]* | wc -w)+1]
   DCC2="DISTCC_HOSTS=10.0.2.2 CPUS=$CPUS"
 else
   DCC1=