@ECHO OFF REM First argument is the target architecture REM Second argument is "Debug" or "Release" mode REM Third argument is the V8 root directory path REM Fourth argument is the version of Visual Studio (optional) IF "%1" == "" GOTO Fail IF "%2" == "" GOTO Fail IF "%3" == "" GOTO Fail REM Go into the V8 lib directory cd "%3" REM Check the last build info, so we know if we're supposed to build again or not SET /P LAST_BUILD_INFO= last_build exit /b 0 :Fail REM Delete the last_build info if this build failed! @del /Q last_build exit /b 1