aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-07 13:34:37 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-07 13:34:37 +0100
commit72e08d5dd9ca035a22dd73eb7db40c0c9b3cb1e3 (patch)
tree71b69122e87a025b7d4a3788c183070e4e210f56 /build
parentf812ace256694e7215f71586214fe3802f5f4923 (diff)
downloadlibssh-72e08d5dd9ca035a22dd73eb7db40c0c9b3cb1e3.tar.gz
libssh-72e08d5dd9ca035a22dd73eb7db40c0c9b3cb1e3.tar.xz
libssh-72e08d5dd9ca035a22dd73eb7db40c0c9b3cb1e3.zip
build: Added a --clang option.
Diffstat (limited to 'build')
-rwxr-xr-xbuild/build_make.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/build_make.sh b/build/build_make.sh
index dd458ae..ba03c99 100755
--- a/build/build_make.sh
+++ b/build/build_make.sh
@@ -62,7 +62,7 @@ function clean_build_dir() {
}
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]"
cleanup_and_exit
}
@@ -100,6 +100,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"
;;