- May
- 535
- 2
I'm trying to run the vcvarsall.bat from VS2015 update 3 to include the Windows SDK version 10.0.14393.0. Unfortunately, the batch file does not work correctly under TCC. I get this:
This appear to be related to something in
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\vcvarsqueryregistry.bat.
Around line 88, it has this block of code:
Since the DIR command appears to be working, I suspect the issue is something related to the enabledDelayedExpansion parameter to setlocal, but that's as far as I have gotten.
When I run it under CMD, it works just fine.
Code:
vcvarsall.bat amd64 10.0.14393.0
!ERROR! Windows SDK 10.0.14393.0 : 'C:\Program Files (x86)\Windows Kits\10\inclu
de\10.0.14393.0\um'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\vcvarsqueryregistry.bat.
Around line 88, it has this block of code:
Code:
@setlocal enableDelayedExpansion
@if not "%WindowsSdkDir%"=="" @for /f %%i IN ('dir "%WindowsSdkDir%include\" /b /ad-h /on') DO (
@REM Skip if Windows.h is not found in %%i\um. This would indicate that only the UCRT MSIs were
@REM installed for this Windows SDK version.
@if EXIST "%WindowsSdkDir%include\%%i\um\Windows.h" (
@set result=%%i
@if "!result:~0,3!"=="10." (
@set SDK=!result!
@if "!result!"=="%user_inputversion%" set findSDK=1
)
)
)
When I run it under CMD, it works just fine.
Code:
TCC 20.11.40 x64 Windows 10 [Version 6.3.14393]
TCC Build 40 Windows 10 Build 14393