Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for search and setup WSL for [amd64_]arm64 #8847

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions erts/etc/win32/wsl_tools/SetupWSLcross.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ rem Usage: eval `cmd.exe /c SetupWSLcross.bat x64`

IF "%~1"=="x86" GOTO search
IF "%~1"=="x64" GOTO search
IF "%~1"=="arm64" GOTO search
IF "%~1"=="amd64_arm64" GOTO search
IF "%~1"=="x64_arm64" GOTO search

GOTO badarg

Expand Down Expand Up @@ -67,7 +70,12 @@ GOTO no_vcvars

:continue

FOR /F "delims==" %%F IN ('where cl.exe') DO SET _cl_exec_=%%F
FOR /F "delims==" %%F IN ('where cl.exe') DO (
SET _cl_exec_=%%F
goto set_cl_path
)

:set_cl_path
FOR %%F IN ("%_cl_exec_%") DO SET CL_PATH=%%~dpF

FOR /F "delims==" %%F IN ('where rc.exe') DO SET _rc_exec_=%%F
Expand All @@ -87,7 +95,7 @@ wsl.exe echo "# Eval this file eval \`cmd.exe /c SetupWSLcross.bat\`"
exit

:badarg
echo "Bad TARGET or not specified: %~1 expected x86 or x64"
echo "Bad TARGET or not specified: %~1 expected x86, x64, arm64 or amd64_arm64(x64_arm64)"
exit

:no_vcvars
Expand Down
Loading