build: Add an option for clang.

This commit is contained in:
Andreas Schneider 2012-10-22 11:21:18 +02:00
parent cea0c9e85f
commit 304371eecb

View file

@ -51,7 +51,7 @@ function clean_build_dir() {
}
function usage () {
echo "Usage: `basename $0` [--prefix /install_prefix|--build [debug|final]|--clean|--verbose|--libsuffix (32|64)|--help]"
echo "Usage: `basename $0` [--prefix /install_prefix|--build [debug|final]|--clean|--clang|--verbose|--libsuffix (32|64)|--help]"
cleanup_and_exit
}
@ -84,6 +84,9 @@ while test -n "$1"; do
clean_build_dir
cleanup_and_exit
;;
*-clang)
OPTIONS="${OPTIONS} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
;;
*-verbose)
DOVERBOSE="1"
;;