2009-10-20 01:46:56 +00:00
|
|
|
#!/bin/sh
|
2012-06-21 18:06:54 +00:00
|
|
|
wordsize=$1
|
|
|
|
if ! test "$wordsize" = "32" -o "$wordsize" = "64"; then
|
|
|
|
echo "Usage: $0 {32,64}"
|
|
|
|
exit 2
|
|
|
|
fi
|
2013-10-10 00:14:45 +00:00
|
|
|
shift
|
2012-06-21 18:06:54 +00:00
|
|
|
objdump=
|
|
|
|
if test "$wordsize" = "64"; then
|
2016-01-24 20:51:21 +00:00
|
|
|
objdump=$(dirname $(type -p x86_64-w64-mingw32-gcc))/objdump
|
|
|
|
else
|
|
|
|
objdump=$(dirname $(type -p i686-w64-mingw32-gcc))/objdump
|
2012-06-21 18:06:54 +00:00
|
|
|
fi
|
2016-01-24 20:51:21 +00:00
|
|
|
CC=cl CXX="cl -TP -GR" ./configure --disable-test-compare-images --enable-external-libs --enable-werror --with-windows-wordsize=$wordsize --with-buildrules=msvc OBJDUMP=$objdump ${1+"$@"}
|