• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Quit if any command produces an error.
4set -e
5
6# Build and run the CHRE simulator.
7CHRE_HOST_OS=`uname`
8if [[ $CHRE_HOST_OS == 'Darwin' ]]; then
9JOB_COUNT=`sysctl -n hw.ncpu`
10else
11JOB_COUNT=$((`grep -c ^processor /proc/cpuinfo`))
12fi
13
14# Export the variant Makefile.
15export CHRE_VARIANT_MK_INCLUDES=variant/simulator/variant.mk
16
17make google_x86_linux_debug -j$JOB_COUNT
18./out/google_x86_linux_debug/libchre ${@:1}
19