summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init-tools.cmd6
1 files changed, 5 insertions, 1 deletions
diff --git a/init-tools.cmd b/init-tools.cmd
index 9b3a0c7e47..e1aaf87487 100644
--- a/init-tools.cmd
+++ b/init-tools.cmd
@@ -86,7 +86,11 @@ if NOT exist "%DOTNET_LOCAL_PATH%" (
:afterdotnetrestore
REM We do not need the build tools for arm64/x86
-if /i "%_Arch%" == "x86" (
+if /i "%PROCESSOR_ARCHITEW6432%" == "arm64" (
+ goto :EOF
+)
+
+if /i "%PROCESSOR_ARCHITECTURE%" == "arm64" (
goto :EOF
)