anchor.diff:  IF /I "%1" == "/Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
   IF /I "%1" == "-Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
   IF /I "%1" == "--Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
  -ECHO.
  -ECHO:Unsupported commandline switch!
  +IF /I "%1" == "x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "/x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "-x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "--x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "/x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "-x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "--x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "all" SET ARCH=all&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "/all" SET ARCH=all&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "-all" SET ARCH=all&&GOTO :CHECKSECONDARG
  +IF /I "%1" == "--all" SET ARCH=all&&GOTO :CHECKSECONDARG
  +ECHO.
  +ECHO:"%1": Unsupported commandline switch!
   ECHO:Run "build.cmd help" for details about the commandline switches.
   CALL :SUBMSG "ERROR" "Compilation failed!"
  -)
   
   
   :CHECKSECONDARG
   REM Check for the second switch
  -IF "%2" == "" (
  -SET ARCH=all
  -) ELSE (
  +IF "%2" == "" SET ARCH=all&&GOTO :START
   IF /I "%2" == "x86" SET ARCH=x86&&GOTO :START
   IF /I "%2" == "/x86" SET ARCH=x86&&GOTO :START
   IF /I "%2" == "-x86" SET ARCH=x86&&GOTO :START
  
positive.code: IF /I "%2" == "/all" SET ARCH=all&&GOTO :START
  IF /I "%2" == "-all" SET ARCH=all&&GOTO :START
  IF /I "%2" == "--all" SET ARCH=all&&GOTO :START
  ECHO.
  ECHO:Unsupported commandline switch!
  ECHO:Run "build.cmd help" for details about the commandline switches.
  CALL :SUBMSG "ERROR" "Compilation failed!"
  )
  
  
  :START
  IF /I "%BUILDTYPE%" == "Clean" GOTO :x86
  PUSHD ..
  CALL "update_version.bat"
  
negative.code: ECHO.
  ECHO.
  ECHO:Executing "build.cmd" will use the defaults: "build.cmd build all"
  ECHO:If you skip an argument the default one will be used.
  ECHO.
  ECHO:Examples:
  ECHO:  "build.cmd rebuild" is equivalent to "build.cmd rebuild all"
  ECHO:  "build.cmd x86" is equivalent to "build.cmd build x86"
  ECHO.
  ENDLOCAL
  EXIT /B
  
  :CHECKFIRSTARG
  REM Check for the first switch
  IF "%1" == "" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
  IF /I "%1" == "Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
  IF /I "%1" == "/Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
  IF /I "%1" == "-Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
  