make it simpler to test on a non-Linux system
This commit is contained in:
parent
cfbdf67f59
commit
47aeda0fb2
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
unset CC
|
||||
|
||||
if type apt-get >/dev/null
|
||||
then
|
||||
if type apt-get >/dev/null 2>&1; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y cmake ninja-build
|
||||
fi
|
||||
@ -52,7 +52,9 @@ elif [ "x$ARCH" = "xmingw32" -o "x$ARCH" = "xmingw64" ]; then
|
||||
CPU=x86_64
|
||||
fi
|
||||
|
||||
sudo apt-get install -y mingw-w64
|
||||
if ! type i686-w64-mingw32-gcc > /dev/null; then
|
||||
sudo apt-get install -y mingw-w64
|
||||
fi
|
||||
|
||||
./configure --host=$CPU-w64-mingw32
|
||||
make -j 4
|
||||
|
Loading…
x
Reference in New Issue
Block a user