diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-08-01 16:35:25 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-09-14 05:58:27 +0200 |
commit | 7b9f4e4e8169ca2fad3a1c7ca03f07ecfc46678e (patch) | |
tree | 0cef1ac0dc228b621afc90bc94e4e0dddcb90c82 /vendor/bandit/cross_compile.sh | |
parent | c6196b25d119a10e79deedef26a73e0d5a021b0e (diff) |
Bandit 2.0.0
Diffstat (limited to 'vendor/bandit/cross_compile.sh')
-rwxr-xr-x | vendor/bandit/cross_compile.sh | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/vendor/bandit/cross_compile.sh b/vendor/bandit/cross_compile.sh index e8de39f7..7be77aaa 100755 --- a/vendor/bandit/cross_compile.sh +++ b/vendor/bandit/cross_compile.sh @@ -1,14 +1,17 @@ #!/bin/bash +build_results=() + function build_for { CC=$1 CXX=$2 - BUILD_DIR=build-$CC + BUILD_DIR=$CC mkdir $BUILD_DIR pushd $BUILD_DIR CC=$CC CXX=$CXX cmake ../.. make + build_results+=("$CC: $?") popd } @@ -19,29 +22,22 @@ fi mkdir builds pushd builds -build_for gcc-4.5 g++-4.5 -GCC45=$? - -build_for gcc-4.6 g++-4.6 -GCC46=$? - -build_for gcc-4.7 g++-4.7 -GCC47=$? - -build_for gcc-4.8 g++-4.8 -GCC48=$? - +build_for clang-3.6 clang++-3.6 +build_for gcc-5 g++-5 build_for clang clang++ -CLANG=$? +build_for gcc-4.9 g++-4.9 +build_for gcc-4.8 g++-4.8 +build_for gcc-4.7 g++-4.7 +build_for gcc-4.6 g++-4.6 +build_for gcc-4.5 g++-4.5 popd echo echo "Result:" -echo -e "gcc-4.5:\t$GCC45" -echo -e "gcc-4.6:\t$GCC46" -echo -e "gcc-4.7:\t$GCC47" -echo -e "gcc-4.8:\t$GCC48" -echo -e "clang:\t$CLANG" +for res in "${build_results[@]}" +do + echo $res +done + echo "Done" -exit $(( $GCC45 + $GCC46 + $GCC47 + $GCC48 + $CLANG )) |