3 COMPILERS_CXX98=`cat<<EOF
11 COMPILERS_CXX11=`cat<<EOF
24 export CXX=`echo $compiler | sed -e 's/clang/clang++/' -e 's/gcc/g++/'`
25 export CXXFLAGS="-std=$lang"
26 echo "Creating $builddir"
27 mkdir $builddir 2>/dev/null
30 cmake -DCMAKE_BUILD_TYPE=$buildtype -DBACKWARD_TESTS=ON ..
37 make -C "$builddir" $@
43 make -C "$builddir" test $@
47 function do_action() {
52 for compiler in $COMPILERS; do
53 local builddir="build_${lang}_${compiler}"
55 if [[ $action == "cmake" ]]; then
57 mkbuild $compiler $lang "$buildtype" "$builddir"
59 elif [[ $action == "make" ]]; then
62 elif [[ $action == "test" ]]; then
65 elif [[ $action == "clean" ]]; then
68 echo "usage: $0 cmake [debug|release|relwithdbg]|make|test|clean"
74 COMPILERS=$COMPILERS_CXX98
76 COMPILERS=$COMPILERS_CXX11