[cfe-commits] r80949 - /cfe/tags/Apple/clang/GNUSource.make

Mike Stump mrs at apple.com
Thu Sep 3 14:28:12 PDT 2009


Author: mrs
Date: Thu Sep  3 16:28:11 2009
New Revision: 80949

URL: http://llvm.org/viewvc/llvm-project?rev=80949&view=rev
Log:
Trim memory requirements on small machines with lots of cores.

Modified:
    cfe/tags/Apple/clang/GNUSource.make

Modified: cfe/tags/Apple/clang/GNUSource.make
URL: http://llvm.org/viewvc/llvm-project/cfe/tags/Apple/clang/GNUSource.make?rev=80949&r1=80948&r2=80949&view=diff

==============================================================================
--- cfe/tags/Apple/clang/GNUSource.make (original)
+++ cfe/tags/Apple/clang/GNUSource.make Thu Sep  3 16:28:11 2009
@@ -114,7 +114,7 @@
 
 .PHONY: configure almostclean
 
-SYSCTL := $(shell sysctl -n hw.activecpu)
+SYSCTL := $(shell if [ `sysctl -n hw.activecpu` -ge 8 -a `sysctl -n hw.memsize` -le 2147483648 ]; then echo 4; else sysctl -n hw.activecpu; fi)
 
 install:: build
 ifneq ($(GnuNoInstall),YES)





More information about the cfe-commits mailing list