mpir/build.vc/check_config.bat

28 lines
803 B
Batchfile
Raw Normal View History

2015-07-22 17:39:24 -04:00
@echo off
2015-11-19 11:30:52 -05:00
rem %1 = platform
rem %2 = configuration
rem %3 - msvc version
2015-06-06 05:12:40 -04:00
rem output_params.bat contains:
2015-07-22 17:39:24 -04:00
rem (set ldir=architecture)
rem (set libr=lib)
rem (set plat=x64)
rem (set conf=Release)
2015-06-06 05:12:40 -04:00
call :clrerr
2015-11-19 11:30:52 -05:00
if exist output_params.bat (call output_params.bat) else (call :seterr & echo ERROR: 'output_params.bat' not found & exit /b %errorlevel%)
if /i "%libr%" EQU "lib" if not exist ..\build.vc%3\lib_mpir_cxx\%plat%\%conf%\mpirxx.lib (call :seterr & echo ERROR: static library tests need 'mpirxx.lib' & exit /b %errorlevel%)
2015-06-06 05:12:40 -04:00
2015-07-22 17:39:24 -04:00
if /i "%1" EQU "%plat%" if /i "%2" EQU "%conf%" (exit /b 0)
2015-06-06 05:12:40 -04:00
call :seterr
2015-07-22 17:39:24 -04:00
echo ERROR The last MPIR build was for \%plat%\%conf%, not %1\%2
echo Please set the correct platform and configuration for the tests
2015-06-06 05:12:40 -04:00
exit /b %errorlevel%
:clrerr
exit /b 0
:seterr
exit /b 1