Files
impala/bin/make_debug.sh
Kay Ousterhout e5c42edad2 Changed make_debug script to limit the # of threads used when make-ing.
The number of threads is set to be consistent with the number used in buildall.
2012-07-19 16:04:49 -07:00

31 lines
607 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
TARGET_BUILD_TYPE=Debug
# parse command line options
for ARG in $*
do
case "$ARG" in
-codecoverage)
TARGET_BUILD_TYPE=CODE_COVERAGE
;;
-help)
echo "make_debug.sh [-codecoverage]"
echo "[-codecoverage] : build with 'gcov' code coverage instrumentation at the cost of performance"
exit
;;
esac
done
cd $IMPALA_HOME
cmake -DCMAKE_BUILD_TYPE=$TARGET_BUILD_TYPE .
make clean
cd $IMPALA_HOME/common/function-registry
make
cd $IMPALA_HOME/common/thrift
make
cd $IMPALA_BE_DIR
make -j4