Skip to content

Commit

Permalink
Simpler get-binarysizes check for OSX (#3901)
Browse files Browse the repository at this point in the history
* Simpler get-binarysizes check for OSX

* Missed wildcard
  • Loading branch information
LarryOsterman authored Aug 24, 2022
1 parent 634df13 commit f8c41df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eng/scripts/Get-BinarySizes.ps1
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ function setEnvVar($key, $value) {
}

function getTargetOs {
if ($OsVMImage.StartsWith('macOS', $true, (Get-Culture).InvariantCulture)) {
if ($OsVMImage -like 'macOS*') {
return $OsVMImage
}

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

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

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

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

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

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

0 comments on commit f8c41df

Please sign in to comment.