make it simpler to test on a non-Linux system

This commit is contained in:
Brent Cook 2023-02-28 08:34:08 -06:00
parent cfbdf67f59
commit 47aeda0fb2

View File

@ -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