blob: 7520b1c0ff2da44045ecc100a5fe1ff526aba7e7 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Invokes an incremental, parallel build of the update engine binaries. For the
# number of build threads, it uses the number of processing cores plus one.
NUM_CORES=$(cat /proc/cpuinfo | grep '^processor' | wc -l)
CFLAGS=-O1 scons -j $((NUM_CORES + 1)) "$@"