#1041 We often build Win32 although we request x64. I suspect a rogue copy of vcvars.bat on the builder's path.

v0.27.3
Robin Mills 10 years ago
parent bb032fb6c7
commit db16f80d9f

@ -16,7 +16,7 @@ if NOT DEFINED _MODE_ SET _MODE_=dll
if NOT DEFINED COPYCMD SET COPYCMD=/Y if NOT DEFINED COPYCMD SET COPYCMD=/Y
rem ---------- check that EXIV2 exists rem ---------- check that EXIV2 exists
call:echo checking that %_EXIV2_% exists echo checking that %_EXIV2_% exists
if NOT EXIST %_EXIV2_% ( if NOT EXIST %_EXIV2_% (
echo "_EXIV2_ = %_EXIV2_% does not exist ***" >&2 echo "_EXIV2_ = %_EXIV2_% does not exist ***" >&2
exit /b 1 exit /b 1

@ -23,6 +23,7 @@ exiv2=$(cygpath -aw .)
build=$(cygpath -aw .\\build) build=$(cygpath -aw .\\build)
dist=$(cygpath -au .\\build\\dist\\$vs\\$arch\\$mode\\$config\\bin) dist=$(cygpath -au .\\build\\dist\\$vs\\$arch\\$mode\\$config\\bin)
di32=$(cygpath -au .\\build\\dist\\$vs\\Win32\\$mode\\$config\\bin) di32=$(cygpath -au .\\build\\dist\\$vs\\Win32\\$mode\\$config\\bin)
di64=$(cygpath -au .\\build\\dist\\$vs\\x64\\$mode\\$config\\bin)
msvc=$(cygpath -aw ./contrib/cmake/msvc) msvc=$(cygpath -aw ./contrib/cmake/msvc)
## ##
@ -42,10 +43,14 @@ mkdir -p $dist
## ##
# test the build # test the build
# For an unknown reason, we sometimes build the wrong architecture
export EXIV2_BINDIR=$dist export EXIV2_BINDIR=$dist
if [ ! -e $dist/exiv2.exe -a -e $di32/exiv2.exe ]; then if [ "$arch" == "x64" -a !-e $dist/exiv2.exe -a -e $di32/exiv2.exe ]; then
export EXIV2_BINDIR=$di32 export EXIV2_BINDIR=$di32
fi fi
if [ "$arch" == "Win32" -a !-e $dist/exiv2.exe -a -e $di64/exiv2.exe ]; then
export EXIV2_BINDIR=$di64
fi
pushd test pushd test
for test in addmoddel.sh \ for test in addmoddel.sh \
bugfixes-test.sh \ bugfixes-test.sh \

Loading…
Cancel
Save