File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,15 @@ function Find-LinkExe {
123
123
}
124
124
}
125
125
126
+ $channel = ' stable'
126
127
if ($null -ne (Get-Command rustup - ErrorAction Ignore)) {
127
128
$rustup = ' rustup'
129
+ } elseif ($null -ne (Get-Command msrustup - ErrorAction Ignore)) {
130
+ $rustup = ' msrustup'
131
+ $channel = ' ms-stable'
132
+ if ($architecture -eq ' current' ) {
133
+ $env: MSRUSTUP_TOOLCHAIN = " $architecture "
134
+ }
128
135
} else {
129
136
$rustup = ' echo'
130
137
}
@@ -191,7 +198,7 @@ if ($architecture -eq 'current') {
191
198
$target = Join-Path $PSScriptRoot ' bin' $configuration
192
199
}
193
200
else {
194
- & $rustup target add $architecture
201
+ & $rustup target add -- toolchain $channel $architecture
195
202
$flags += ' --target'
196
203
$flags += $architecture
197
204
$path = " .\target\$architecture \$configuration "
@@ -343,10 +350,10 @@ if (!$SkipBuild) {
343
350
$binary = Split-Path $project - Leaf
344
351
345
352
if ($IsWindows ) {
346
- Copy-Item " $path /$binary .exe" $target - ErrorAction Ignore
353
+ Copy-Item " $path /$binary .exe" $target - ErrorAction Ignore - Verbose
347
354
}
348
355
else {
349
- Copy-Item " $path /$binary " $target - ErrorAction Ignore
356
+ Copy-Item " $path /$binary " $target - ErrorAction Ignore - Verbose
350
357
}
351
358
352
359
if (Test-Path " ./copy_files.txt" ) {
You can’t perform that action at this time.
0 commit comments