Skip to content

Commit f8c41df

Browse files
Simpler get-binarysizes check for OSX (#3901)
* Simpler get-binarysizes check for OSX * Missed wildcard
1 parent 634df13 commit f8c41df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eng/scripts/Get-BinarySizes.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function setEnvVar($key, $value) {
4141
}
4242

4343
function getTargetOs {
44-
if ($OsVMImage.StartsWith('macOS', $true, (Get-Culture).InvariantCulture)) {
44+
if ($OsVMImage -like 'macOS*') {
4545
return $OsVMImage
4646
}
4747

@@ -64,7 +64,7 @@ function getTargetOs {
6464
}
6565

6666
function getTargetArchitecture {
67-
if ($OSVmImage.StartsWith('macOS', $true, (Get-Culture).InvariantCulture)) {
67+
if ($OSVmImage -like 'macOS*') {
6868
return "x64"
6969
}
7070

@@ -81,7 +81,7 @@ function getTargetArchitecture {
8181
}
8282

8383
function getToolChain {
84-
if ($OSVmImage.StartsWith('macOS', $true, (Get-Culture).InvariantCulture)) {
84+
if ($OSVmImage -like 'macOS*') {
8585
return "AppleClang 12"
8686
}
8787

@@ -109,7 +109,7 @@ function getToolChain {
109109
}
110110

111111
function getTargetPlatform {
112-
if ($OSVmImage.StartsWith('macOS', $true, (Get-Culture).InvariantCulture)) {
112+
if ($OSVmImage -like 'macOS*') {
113113
return "macos"
114114
}
115115

0 commit comments

Comments
 (0)