Skip to content

Commit 790a7a6

Browse files
committed
fix: delete ninja from VS
1 parent 4ea3d12 commit 790a7a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/kokoro/windows/build.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
@REM Change PATH to include the google cloud CLI (formerly SDK)
1818
@set "PATH=%ProgramFiles(x86)%\Google\Cloud SDK\google-cloud-sdk\bin;%PATH%"
1919

20+
@REM The Visual Studio installation includes a ninja.exe that can conflict with
21+
@REM the version needed by vcpkg. To avoid this, we simply delete it. A
22+
@REM working version will be available via Chocolatey later in the PATH.
23+
del /q "%ProgramFiles(x86)%\Microsoft Visual Studio\%MSVC_VERSION%\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
24+
2025
REM Configure the environment to use MSVC %MSVC_VERSION% and then switch to PowerShell.
2126
call "%ProgramFiles(x86)%\Microsoft Visual Studio\%MSVC_VERSION%\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
2227
set "BAZEL_VC=%ProgramFiles(x86)%\Microsoft Visual Studio\%MSVC_VERSION%\BuildTools\VC"

0 commit comments

Comments
 (0)