Skip to content

Commit

Permalink
VSCode: Speed up build.bat by not using vcvars64.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Dec 7, 2023
1 parent 95a1f2c commit d5fe045
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .vscode/build.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
@echo off

:: see https://blog.pcitron.fr/2022/01/04/dont-use-vcvarsall-vsdevcmd/
set VSCMD_ARG_HOST_ARCH=x64
set VSCMD_ARG_TGT_ARCH=x64
set VSCMD_ARG_APP_PLAT=Desktop
set VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Community\
call "%VSINSTALLDIR%\Common7\Tools\vsdevcmd\core\winsdk.bat"
call "%VSINSTALLDIR%\Common7\Tools\vsdevcmd\ext\cmake.bat"
call "%VSINSTALLDIR%\Common7\Tools\vsdevcmd\ext\vcvars.bat"
if not defined INCLUDE set INCLUDE=%__VSCMD_VCVARS_INCLUDE%%__VSCMD_WINSDK_INCLUDE%%__VSCMD_NETFX_INCLUDE%%INCLUDE%

if exist build\build.ninja (
rem file exists
) else (
Expand Down

0 comments on commit d5fe045

Please sign in to comment.