File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,14 @@ rem version using the available env vars so we test to see if the runtime dir
118
118
rem exists and if not we fall back to 3.
119
119
rem NOTE 2 This code is likely to break again in the future !!!!
120
120
set MSVC_RUNTIME_MINOR_VERSION = %VCToolsVersion:~3 ,1 %
121
- if not exist " %VCToolsRedistDir%%VSCMD_ARG_TGT_ARCH% \Microsoft.VC%MSVC_RUNTIME_MAJOR_VERSION%%MSVC_RUNTIME_MINOR_VERSION% .CRT" (
121
+
122
+ @ setlocal EnableDelayedExpansion
123
+
124
+ if not exist " !VCToolsRedistDir!!VSCMD_ARG_TGT_ARCH! \Microsoft.VC!MSVC_RUNTIME_MAJOR_VERSION!!MSVC_RUNTIME_MINOR_VERSION! .CRT" (
125
+ @ endlocal
122
126
set MSVC_RUNTIME_MINOR_VERSION = 3
127
+ ) else (
128
+ @ endlocal
123
129
)
124
130
set MSVC_RUNTIME_LIBRARY_VERSION = %MSVC_RUNTIME_MAJOR_VERSION%%MSVC_RUNTIME_MINOR_VERSION%
125
131
You can’t perform that action at this time.
0 commit comments