File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -236,12 +236,18 @@ if ($null -ne $packageType) {
236
236
& $rustup default stable
237
237
}
238
238
239
- if ($Clippy -and $null -eq ( Get-Command cargo - clippy - ErrorAction Ignore) ) {
240
- Write-Verbose - Verbose " clippy not found, installing ..."
239
+ if ($Clippy ) {
240
+ Write-Verbose - Verbose " Installing clippy ..."
241
241
if ($UseCFS ) {
242
242
cargo install clippy -- config .cargo/ config.toml
243
243
} else {
244
- cargo install clippy
244
+ if ($architecture -ne ' current' ) {
245
+ write-verbose - verbose " Installing clippy for $architecture "
246
+ & $rustup component add clippy -- target $architecture
247
+ } else {
248
+ write-verbose - verbose " Installing clippy for current architecture"
249
+ & $rustup component add clippy
250
+ }
245
251
}
246
252
if ($LASTEXITCODE -ne 0 ) {
247
253
throw " Failed to install clippy"
You can’t perform that action at this time.
0 commit comments