Skip to content

Commit 63927a8

Browse files
authored
Merge pull request #749 from SteveL-MSFT/use-msrustup
Change build to prefer msrustup
2 parents 9fc9a80 + 2585cb9 commit 63927a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pipelines/DSC-Official.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ extends:
207207
apt -y install gcc-multilib
208208
apt -y install libssl-dev
209209
apt -y install pkg-config
210-
rustup default stable-aarch64-unknown-linux-musl
210+
msrustup default stable-aarch64-unknown-linux-musl
211211
if ((openssl version -d) -match 'OPENSSLDIR: "(?<dir>.*?)"') {
212212
$env:OPENSSL_LIB_DIR = $matches['dir']
213213
}

build.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ function Find-LinkExe {
124124
}
125125

126126
$channel = 'stable'
127-
if ($null -ne (Get-Command rustup -ErrorAction Ignore)) {
128-
$rustup = 'rustup'
129-
} elseif ($null -ne (Get-Command msrustup -ErrorAction Ignore)) {
127+
if ($null -ne (Get-Command msrustup -CommandType Application -ErrorAction Ignore)) {
130128
$rustup = 'msrustup'
131129
$channel = 'ms-stable'
132130
if ($architecture -eq 'current') {
133131
$env:MSRUSTUP_TOOLCHAIN = "$architecture"
134132
}
133+
} elseif ($null -ne (Get-Command rustup -CommandType Application -ErrorAction Ignore)) {
134+
$rustup = 'rustup'
135135
} else {
136136
$rustup = 'echo'
137137
}

0 commit comments

Comments
 (0)