Skip to content

Commit

Permalink
Fix #569; cmd /e:off causes syntax error in clink.bat
Browse files Browse the repository at this point in the history
Regression introduced in v1.3.47 (Oct 2022).
  • Loading branch information
chrisant996 committed Mar 1, 2024
1 parent b7cbee7 commit 14283a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clink/app/src/loader/clink.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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" %*
)
)
Expand Down

0 comments on commit 14283a8

Please sign in to comment.