test/make/toolchain.sh

branch
configure-evo
changeset 54
2b8f40c58944
parent 52
afcb57893858
child 66
dc758dcd4645
--- a/test/make/toolchain.sh	Fri Sep 15 11:33:35 2023 +0200
+++ b/test/make/toolchain.sh	Fri Sep 15 14:06:50 2023 +0200
@@ -75,7 +75,7 @@
 if [ -n "$CC" ]; then
   if check_c_compiler "$CC"; then
     TOOLCHAIN_CC=$CC
-    TOOLCHAIN_NAME=$("$TEMP_DIR/checkcc")
+    TOOLCHAIN_NAME=`"$TEMP_DIR/checkcc"`
     echo $CC
   else
     echo "$CC is not a working C compiler"
@@ -85,12 +85,12 @@
   for COMP in $C_COMPILERS
   do
     if check_c_compiler "$COMP"; then
-      TOOLCHAIN_NAME=$("$TEMP_DIR/checkcc")
+      TOOLCHAIN_NAME=`"$TEMP_DIR/checkcc"`
       TOOLCHAIN_CC=$COMP
       break
     fi
   done
-  echo "${TOOLCHAIN_CC-"not found"}"
+  echo ${TOOLCHAIN_CC:-"not found"}
 fi
 
 printf "detect C++ compiler... "
@@ -98,7 +98,7 @@
 if [ -n "$CXX" ]; then
   if check_cpp_compiler "$CXX"; then
     TOOLCHAIN_CXX=$CXX
-    TOOLCHAIN_NAME=$("$TEMP_DIR/checkcc")
+    TOOLCHAIN_NAME=`"$TEMP_DIR/checkcc"`
     echo $CXX
   else
     echo "$CXX is not a working C++ compiler"
@@ -108,12 +108,12 @@
   for COMP in $CPP_COMPILERS
   do
     if check_cpp_compiler "$COMP"; then
-      TOOLCHAIN_NAME=$("$TEMP_DIR/checkcc")
+      TOOLCHAIN_NAME=`"$TEMP_DIR/checkcc"`
       TOOLCHAIN_CXX=$COMP
       break
     fi
   done
-  echo "${TOOLCHAIN_CXX-"not found"}"
+  echo ${TOOLCHAIN_CXX:-"not found"}
 fi
 
 printf "detect linker... "

mercurial