Skip to content

Commit

Permalink
make it simpler to test on a non-Linux system
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed May 27, 2023
1 parent a316f8a commit 6053283
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/test
@@ -1,11 +1,11 @@
#!/bin/sh
set -e
set -x

unset CC
ENABLE_ASM="${ENABLE_ASM:=ON}"

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
Expand Down Expand Up @@ -53,7 +53,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
Expand Down

0 comments on commit 6053283

Please sign in to comment.