1
1

build: Added a --clang option.

Этот коммит содержится в:
Andreas Schneider 2011-02-07 13:34:37 +01:00
родитель f812ace256
Коммит 72e08d5dd9

Просмотреть файл

@ -62,7 +62,7 @@ function clean_build_dir() {
} }
function usage () { function usage () {
echo "Usage: `basename $0` [--prefix /install_prefix|--build [debug|final]|--clean|--verbose|--libsuffix (32|64)|--help|--cmakedir /directory|--make echo "Usage: `basename $0` [--prefix /install_prefix|--build [debug|final]|--clean|--verbose|--libsuffix (32|64)|--help|--clang|--cmakedir /directory|--make
(gmake|make)|--ccompiler (gcc|cc)|--withstaticlib|--unittesting|--clientunittesting|--withssh1|--withserver]" (gmake|make)|--ccompiler (gcc|cc)|--withstaticlib|--unittesting|--clientunittesting|--withssh1|--withserver]"
cleanup_and_exit cleanup_and_exit
} }
@ -100,6 +100,9 @@ while test -n "$1"; do
clean_build_dir clean_build_dir
cleanup_and_exit cleanup_and_exit
;; ;;
*-clang)
OPTIONS="${OPTIONS} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
;;
*-verbose) *-verbose)
DOVERBOSE="1" DOVERBOSE="1"
;; ;;