Skip to content

Commit cad96da

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
explicit not use rustup
1 parent 0292085 commit cad96da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ if ($null -ne $packageType) {
192192

193193
$BuildToolsPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC"
194194

195-
& $rustup default stable
195+
if (!$usingADO) {
196+
& $rustup default stable
197+
}
196198

197199
## Test if Node is installed
198200
## Skipping upgrade as users may have a specific version they want to use
@@ -261,7 +263,7 @@ else {
261263
}
262264

263265
if (!$SkipBuild) {
264-
if ($architecture -ne 'Current') {
266+
if ($architecture -ne 'Current' -and !$usingADO) {
265267
& $rustup target add --toolchain $channel $architecture
266268
}
267269

0 commit comments

Comments
 (0)