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