- Jul
- 198
- 2
in "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" there are lines like this
:Parse_Args
IF /I "%~1"=="/debug" SET "Configuration=Debug" & SHIFT & GOTO Parse_Args
IF /I "%~1"=="/release" SET "Configuration=Release" & SHIFT & GOTO Parse_Args
It seems under CMD the SHIFT and the GOTO are part of the IF clause.
Under TCC the &-command-separator makes that the SHIFT and GOTO always apply — yielding and infinite loop.
:Parse_Args
IF /I "%~1"=="/debug" SET "Configuration=Debug" & SHIFT & GOTO Parse_Args
IF /I "%~1"=="/release" SET "Configuration=Release" & SHIFT & GOTO Parse_Args
It seems under CMD the SHIFT and the GOTO are part of the IF clause.
Under TCC the &-command-separator makes that the SHIFT and GOTO always apply — yielding and infinite loop.