Skip to content

Commit a2ae1e6

Browse files
committed
help bazel find VS when more than one VS is present
1 parent 9c30a12 commit a2ae1e6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tensorflow-base-cpu/bld.bat

+2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ FOR /F "delims=" %%i IN ('cygpath.exe -u "%SYSTEMDRIVE%\t"') DO set "TMPDIR=%%i"
2525
set MSYSTEM=MINGW%ARCH%
2626
set MSYS2_PATH_TYPE=inherit
2727
set CHERE_INVOKING=1
28+
set "BAZEL_VC=%VSINSTALLDIR%VC"
29+
set "BAZEL_VS=%VSINSTALLDIR%"
2830
bash -lc "%RECIPE_DIR%"/build_win.sh
2931
if errorlevel 1 exit 1

tensorflow-base-gpu/bld.bat

+2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ FOR /F "delims=" %%i IN ('cygpath.exe -u "%SYSTEMDRIVE%\t"') DO set "TMPDIR=%%i"
2525
set MSYSTEM=MINGW%ARCH%
2626
set MSYS2_PATH_TYPE=inherit
2727
set CHERE_INVOKING=1
28+
set "BAZEL_VC=%VSINSTALLDIR%VC"
29+
set "BAZEL_VS=%VSINSTALLDIR%"
2830
bash -lc "%RECIPE_DIR%"/build_win.sh
2931
if errorlevel 1 exit 1

0 commit comments

Comments
 (0)