| Gilad Arnold | ab3bb45 | 2012-05-22 09:08:12 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |||||
| 3 | # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. | ||||
| 4 | # Use of this source code is governed by a BSD-style license that can be | ||||
| 5 | # found in the LICENSE file. | ||||
| 6 | |||||
| 7 | # Invokes an incremental, parallel build of the update engine binaries. For the | ||||
| 8 | # number of build threads, it uses the number of processing cores plus one. | ||||
| 9 | |||||
| 10 | NUM_CORES=$(cat /proc/cpuinfo | grep '^processor' | wc -l) | ||||
| 11 | scons -j $((NUM_CORES + 1)) "$@" | ||||