Simpler get-binarysizes check for OSX (#3901)
* Simpler get-binarysizes check for OSX * Missed wildcard
This commit is contained in:
parent
634df137e3
commit
f8c41df5a2
@ -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"
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user