diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-02-09 03:14:47 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-02-09 03:14:47 +0300 |
commit | 94c8bbec9c820ad39f83e5c5e1f293b635e72124 (patch) | |
tree | 0c72d73985ba05ec757283705084f2b1373b26e8 /build_files/windows/configure_ninja.cmd | |
parent | 02495f1e3c9dd3b9f70afc03d518742c44dc8a60 (diff) |
Windows: Improve rebuild.cmd
Previously the MSVC environment was setup every time using vcvarsall.bat
when you ran you ran rebuild.cmd, Generally not an issue but after many
rebuilds on the same console, it grows the path environment variable
beyond what is supported and building breaks.
This patch adds a check to see if the environment is setup already
and skips the call to vcvarsall.bat
Also cleans up the double build in the msbuild's version of rebuild.cmd
install.vcxproj will build all that is needed, so no need to do a regular
build first.
Diffstat (limited to 'build_files/windows/configure_ninja.cmd')
-rw-r--r-- | build_files/windows/configure_ninja.cmd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build_files/windows/configure_ninja.cmd b/build_files/windows/configure_ninja.cmd index 8f766e855a6..1650e43cda9 100644 --- a/build_files/windows/configure_ninja.cmd +++ b/build_files/windows/configure_ninja.cmd @@ -80,7 +80,10 @@ if "%MUST_CONFIGURE%"=="1" ( ) ) -echo call "%VCVARS%" %BUILD_ARCH% > %BUILD_DIR%\rebuild.cmd +echo echo off > %BUILD_DIR%\rebuild.cmd +echo if "%%VSCMD_VER%%" == "" ^( >> %BUILD_DIR%\rebuild.cmd +echo call "%VCVARS%" %BUILD_ARCH% >> %BUILD_DIR%\rebuild.cmd +echo ^) >> %BUILD_DIR%\rebuild.cmd echo echo %%TIME%% ^> buildtime.txt >> %BUILD_DIR%\rebuild.cmd echo ninja install >> %BUILD_DIR%\rebuild.cmd echo echo %%TIME%% ^>^> buildtime.txt >> %BUILD_DIR%\rebuild.cmd
\ No newline at end of file |