diff -r a775e493d340 -r cdf8bf4549c4 test/make/toolchain.sh --- a/test/make/toolchain.sh Tue Aug 13 21:54:17 2019 +0200 +++ b/test/make/toolchain.sh Tue Aug 13 22:15:36 2019 +0200 @@ -99,7 +99,7 @@ TOOLCHAIN_NAME=`$TEMP_DIR/checkcc` TOOLCHAIN_CC=$COMP - echo $TOOLCHAIN_NAME + echo $COMP break fi done @@ -113,7 +113,7 @@ do check_cpp_compiler $COMP if [ $? -ne 0 ]; then - if [[ ! -z $CXX ]]; then + if [ ! -z "$CXX" ]; then if [ $COMP = $CXX ]; then echo "$CC is not a working C++ Compiler" TOOLCHAIN_DETECTION_ERROR="error" @@ -127,22 +127,22 @@ # these commands and not 'cc' TOOLCHAIN_NAME=`$TEMP_DIR/checkcc` if [ $TOOLCHAIN_NAME = "gcc" ]; then - check_c_compiler "gcc" + check_cpp_compiler "g++" if [ $? -eq 0 ]; then - COMP=gcc + COMP=g++ fi fi if [ $TOOLCHAIN_NAME = "clang" ]; then - check_c_compiler "clang" + check_cpp_compiler "clang++" if [ $? -eq 0 ]; then - COMP=clang + COMP=clang++ fi fi fi TOOLCHAIN_NAME=`$TEMP_DIR/checkcc` TOOLCHAIN_CXX=$COMP - echo $TOOLCHAIN_NAME + echo $COMP break fi done