From 14283a8d7718df7c8fd80acb7a98303058c831a2 Mon Sep 17 00:00:00 2001 From: Chris Antos Date: Fri, 1 Mar 2024 00:45:17 -0800 Subject: [PATCH] Fix #569; cmd /e:off causes syntax error in clink.bat Regression introduced in v1.3.47 (Oct 2022). --- clink/app/src/loader/clink.bat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clink/app/src/loader/clink.bat b/clink/app/src/loader/clink.bat index ce96823b2..5c65d3332 100644 --- a/clink/app/src/loader/clink.bat +++ b/clink/app/src/loader/clink.bat @@ -35,17 +35,20 @@ if _%1==_ ( if defined CLINK_NOAUTORUN if /i "%~1"=="inject" if /i "%~2"=="--autorun" goto :end :: Endlocal before inject tags the prompt. -endlocal :: Pass through to appropriate loader. if /i "%processor_architecture%"=="x86" ( + endlocal "%~dp0\clink_x86.exe" %* ) else if /i "%processor_architecture%"=="arm64" ( + endlocal "%~dp0\clink_arm64.exe" %* ) else if /i "%processor_architecture%"=="amd64" ( if defined processor_architew6432 ( + endlocal "%~dp0\clink_x86.exe" %* ) else ( + endlocal "%~dp0\clink_x64.exe" %* ) )