aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test13
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/test b/scripts/test
index 5e95dfd..d874b64 100755
--- a/scripts/test
+++ b/scripts/test
@@ -27,15 +27,18 @@ setup_cross_compiler() {
27 CXX=${cross_prefix}-g++-${gcc_ver} 27 CXX=${cross_prefix}-g++-${gcc_ver}
28 fi 28 fi
29 29
30 if ! command -v "${CC}" >/dev/null 2>&1; then
31 echo "##### Error: ${CC} not found in PATH"
32 exit 1
33 fi
34
35 AR=${cross_prefix}-ar 30 AR=${cross_prefix}-ar
36 STRIP=${cross_prefix}-strip 31 STRIP=${cross_prefix}-strip
37 RANLIB=${cross_prefix}-ranlib 32 RANLIB=${cross_prefix}-ranlib
38 33
34 # Check all binaries actually exist.
35 for c in "$CC" "$CXX" "$AR" "$STRIP" "$RANLIB"; do
36 if ! command -v "$c" >/dev/null 2>&1; then
37 echo "##### Error: $c not found"
38 exit 1
39 fi
40 done
41
39 echo "##### Using $($CC --version | head -1)" 42 echo "##### Using $($CC --version | head -1)"
40} 43}
41 44