Windows: update dobuild.cmd to run the configure/make
[fio.git] / os / windows / _domake.sh
diff --git a/os/windows/_domake.sh b/os/windows/_domake.sh
new file mode 100755 (executable)
index 0000000..05625ff
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+set -e
+
+cd "$2"
+cd ../..
+if [ -e "fio.exe" ]; then
+  make clean
+fi
+
+if [ "$1" = "x86" ]; then
+  ./configure --disable-native --build-32bit-win
+else
+  ./configure --disable-native
+fi
+
+make -j