diff options
| author | gingerBill <bill@gingerbill.org> | 2023-06-13 13:21:15 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-06-13 13:21:15 +0100 |
| commit | fc4a5e61c27467b30a421bceb7d21ac29ef8468e (patch) | |
| tree | 135480555c0117c53ed1abccdb4de486d5308538 /build.bat | |
| parent | e9608c9d05dcd61570cb26c80546742b278fcd3b (diff) | |
Add `ODIN_IGNORE_MSVC_CHECK` check to build.bat
Diffstat (limited to 'build.bat')
| -rw-r--r-- | build.bat | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -3,18 +3,20 @@ setlocal EnableDelayedExpansion where /Q cl.exe || ( - set __VSCMD_ARG_NO_LOGO=1 - for /f "tokens=*" %%i in ('"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.VisualStudio.Workload.NativeDesktop -property installationPath') do set VS=%%i - if "!VS!" equ "" ( - echo ERROR: Visual Studio installation not found - exit /b 1 - ) - call "!VS!\VC\Auxiliary\Build\vcvarsall.bat" amd64 || exit /b 1 + set __VSCMD_ARG_NO_LOGO=1 + for /f "tokens=*" %%i in ('"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.VisualStudio.Workload.NativeDesktop -property installationPath') do set VS=%%i + if "!VS!" equ "" ( + echo ERROR: Visual Studio installation not found + exit /b 1 + ) + call "!VS!\VC\Auxiliary\Build\vcvarsall.bat" amd64 || exit /b 1 ) if "%VSCMD_ARG_TGT_ARCH%" neq "x64" ( - echo ERROR: please run this from MSVC x64 native tools command prompt, 32-bit target is not supported! - exit /b 1 + if "%ODIN_IGNORE_MSVC_CHECK%" == "" ( + echo ERROR: please run this from MSVC x64 native tools command prompt, 32-bit target is not supported! + exit /b 1 + ) ) for /f "usebackq tokens=1,2 delims=,=- " %%i in (`wmic os get LocalDateTime /value`) do @if %%i==LocalDateTime ( |