aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/test8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/test b/scripts/test
index 0eb2c06..c7200dc 100755
--- a/scripts/test
+++ b/scripts/test
@@ -1,10 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2set -e 2set -e
3set -x
3 4
4unset CC 5unset CC
5 6
6if type apt-get >/dev/null 7if type apt-get >/dev/null 2>&1; then
7then
8 sudo apt-get update 8 sudo apt-get update
9 sudo apt-get install -y cmake ninja-build 9 sudo apt-get install -y cmake ninja-build
10fi 10fi
@@ -52,7 +52,9 @@ elif [ "x$ARCH" = "xmingw32" -o "x$ARCH" = "xmingw64" ]; then
52 CPU=x86_64 52 CPU=x86_64
53 fi 53 fi
54 54
55 sudo apt-get install -y mingw-w64 55 if ! type i686-w64-mingw32-gcc > /dev/null; then
56 sudo apt-get install -y mingw-w64
57 fi
56 58
57 ./configure --host=$CPU-w64-mingw32 59 ./configure --host=$CPU-w64-mingw32
58 make -j 4 60 make -j 4