Skip to content

Commit 634a235

Browse files
authored
Remove VS checks that assume Visual Studio is installed on C: drive (#3157)
These checks were there only to provide a nice error message when VS 2019 is not installed but it does not take into account that it can be installed at other locations than the default one. Removing these will still result in an error from cmake if it can't find Visual Studio installed.
1 parent 7f985ff commit 634a235

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

utils/hct/hctbuild.cmd

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -179,22 +179,6 @@ if "%1"=="-dxc-cmake-ends-include" (
179179
shift /1
180180
)
181181

182-
rem If only VS 2019 is available, pick that by default.
183-
if "%BUILD_VS_VER%"=="2017" (
184-
if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2017" (
185-
echo "Cannot find Visual Studio 2017 at %ProgramFiles(x86)%\Microsoft Visual Studio\2017."
186-
echo "Use hctbuild without -vs2017 (or with -vs2019) to build with Visual Studio 2019."
187-
exit /b 1
188-
)
189-
)
190-
if "%BUILD_VS_VER%"=="2019" (
191-
if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019" (
192-
echo "Cannot find Visual Studio 2019 at %ProgramFiles(x86)%\Microsoft Visual Studio\2019."
193-
echo "Use hctbuild -vs2017 to build with Visual Studio 2017."
194-
exit /b 1
195-
)
196-
)
197-
198182
rem Begin SPIRV change
199183
if "%1"=="-spirv" (
200184
echo SPIR-V codegen is enabled.

0 commit comments

Comments
 (0)