diff options
author | anton@chromium.org <anton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-21 19:47:19 +0000 |
---|---|---|
committer | anton@chromium.org <anton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-21 19:47:19 +0000 |
commit | 88e2c16f87df502ec9c959f99dfbcdd891249d32 (patch) | |
tree | 648f3636d74a027c9490fb9303a76456bfb172c0 /build/android | |
parent | 57f569d5db29417523d416462e5becf2d40af9d8 (diff) | |
download | chromium_src-88e2c16f87df502ec9c959f99dfbcdd891249d32.zip chromium_src-88e2c16f87df502ec9c959f99dfbcdd891249d32.tar.gz chromium_src-88e2c16f87df502ec9c959f99dfbcdd891249d32.tar.bz2 |
Set GOMA_COMPILER_PROXY_THREADS to a reasonable value
BUG=
Review URL: https://chromiumcodereview.appspot.com/22976005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android')
-rwxr-xr-x | build/android/envsetup.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/android/envsetup.sh b/build/android/envsetup.sh index f9e3e5e..cacfafc 100755 --- a/build/android/envsetup.sh +++ b/build/android/envsetup.sh @@ -143,6 +143,14 @@ fi ANDROID_GOMA_WRAPPER="" if [[ -d $GOMA_DIR ]]; then ANDROID_GOMA_WRAPPER="$GOMA_DIR/gomacc" + num_cores="$(grep --count ^processor /proc/cpuinfo)" +# Goma is IO-ish you want more threads than you have cores. + let goma_threads=num_cores*2 + if [ -z "${GOMA_COMPILER_PROXY_THREADS}" -a "${goma_threads}" -gt 16 ]; then +# The default is 16 threads, if the machine has many cores we crank it up a bit + GOMA_COMPILER_PROXY_THREADS="${goma_threads}" + export GOMA_COMPILER_PROXY_THREADS + fi fi export ANDROID_GOMA_WRAPPER |