Add hack for arm64/x86 to skip build tools restore (#20390)
authorJarret Shook <jashoo@microsoft.com>
Wed, 17 Oct 2018 01:26:56 +0000 (18:26 -0700)
committerGitHub <noreply@github.com>
Wed, 17 Oct 2018 01:26:56 +0000 (18:26 -0700)
* Add hack for arm64/x86 to skip build tools restore

* Address pr feedback

* Correct PROCESSOR_ARCHITEW6432 comparison

init-tools.cmd

index 9b3a0c7..e1aaf87 100644 (file)
@@ -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
 )