- Jul
- 204
- 2
The following code comes from "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd", a Microsoft SDK batch file.
(on my machine, it is the 3rd inner IF that triggers.)
Under CMD, this code sets TARGET_CPU and CURRENT_CPU.
Under TCC, this code sets none of the variables.
The following code (only the 3rd inner IF, not nested)
sets TARGET_CPU and CURRENT_CPU both under CMD and TCC.
TCC 21.00.32 x64 Windows 7 [Version 6.1.7601]
Code:
IF "x%TARGET_CPU%x"=="xx" (
IF /I "%PROCESSOR_ARCHITECTURE%"=="x86" SET "TARGET_CPU=x86" & SET "CURRENT_CPU=x86"
IF /I "%PROCESSOR_ARCHITEW6432%"=="x86" SET "TARGET_CPU=x86" & SET "CURRENT_CPU=x86"
IF /I "%PROCESSOR_ARCHITECTURE%"=="AMD64" SET "TARGET_CPU=x64" & SET "CURRENT_CPU=x64"
IF /I "%PROCESSOR_ARCHITEW6432%"=="AMD64" SET "TARGET_CPU=x64" & SET "CURRENT_CPU=x64"
IF /I "%PROCESSOR_ARCHITECTURE%"=="x64" SET "TARGET_CPU=x64" & SET "CURRENT_CPU=x64"
IF /I "%PROCESSOR_ARCHITECTURE%"=="IA64" SET "TARGET_CPU=IA64" & SET "CURRENT_CPU=IA64"
IF /I "%PROCESSOR_ARCHITEW6432%"=="IA64" SET "TARGET_CPU=IA64" & SET "CURRENT_CPU=IA64"
GOTO Parse_Args
)
Under CMD, this code sets TARGET_CPU and CURRENT_CPU.
Under TCC, this code sets none of the variables.
The following code (only the 3rd inner IF, not nested)
Code:
IF /I "%PROCESSOR_ARCHITECTURE%"=="AMD64" SET "TARGET_CPU=x64" & SET "CURRENT_CPU=x64"
TCC 21.00.32 x64 Windows 7 [Version 6.1.7601]
Last edited: