Skip to content

Commit 7bc3190

Browse files
authored
Update vc.yml
1 parent 582048e commit 7bc3190

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/vc.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ jobs:
1111
- name: Check if VCToolsRedistDir exists
1212
shell: cmd
1313
run: |
14-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
15-
16-
:: Check if the VCToolsRedistDir variable is set
17-
if not defined VCToolsRedistDir (
14+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 && (
15+
echo VCToolsRedistDir is set to: %VCToolsRedistDir%
16+
) || (
1817
echo Error: Environment variable VCToolsRedistDir is not set.
1918
exit /b 1
20-
) else (
21-
echo VCToolsRedistDir is set to: %VCToolsRedistDir%
2219
)

0 commit comments

Comments
 (0)