Files
impala/bin/make_debug.sh
2014-01-08 10:44:41 -08:00

31 lines
613 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_DEBUG
;;
-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