# HG changeset patch # User Mike Becker # Date 1764420615 -3600 # Node ID 099448bcc943cb603e0d9a9151b7e8dc3008f8e8 # Parent 12a5e64cab3410052282bbd7c091e9c170c08169 improve the latest fix for toolchain.sh diff -r 12a5e64cab34 -r 099448bcc943 src/main/resources/make/toolchain.sh --- a/src/main/resources/make/toolchain.sh Sat Nov 29 12:18:10 2025 +0100 +++ b/src/main/resources/make/toolchain.sh Sat Nov 29 13:50:15 2025 +0100 @@ -24,8 +24,9 @@ check_c_compiler() { - command -v "$1" >/dev/null 2>&1 - if [ $? -ne 0 ] ; then + if command -v "$1" >/dev/null 2>&1 ; then + : + else return 1 fi cat > "$TEMP_DIR/test.c" << __EOF__ @@ -56,8 +57,9 @@ check_cpp_compiler() { - command -v "$1" >/dev/null 2>&1 - if [ $? -ne 0 ] ; then + if command -v "$1" >/dev/null 2>&1 ; then + : + else return 1 fi cat > "$TEMP_DIR/test.cpp" << __EOF__ diff -r 12a5e64cab34 -r 099448bcc943 test/make/toolchain.sh --- a/test/make/toolchain.sh Sat Nov 29 12:18:10 2025 +0100 +++ b/test/make/toolchain.sh Sat Nov 29 13:50:15 2025 +0100 @@ -24,8 +24,9 @@ check_c_compiler() { - command -v "$1" >/dev/null 2>&1 - if [ $? -ne 0 ] ; then + if command -v "$1" >/dev/null 2>&1 ; then + : + else return 1 fi cat > "$TEMP_DIR/test.c" << __EOF__ @@ -56,8 +57,9 @@ check_cpp_compiler() { - command -v "$1" >/dev/null 2>&1 - if [ $? -ne 0 ] ; then + if command -v "$1" >/dev/null 2>&1 ; then + : + else return 1 fi cat > "$TEMP_DIR/test.cpp" << __EOF__