Simpler get-binarysizes check for OSX (#3901)

* Simpler get-binarysizes check for OSX

* Missed wildcard
This commit is contained in:
Larry Osterman 2022-08-24 15:22:05 -07:00 committed by GitHub
parent 634df137e3
commit f8c41df5a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
}