File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function setEnvVar($key, $value) {
41
41
}
42
42
43
43
function getTargetOs {
44
- if ($OsVMImage.StartsWith ( ' macOS' , $true , ( Get-Culture ).InvariantCulture) ) {
44
+ if ($OsVMImage -like ' macOS* ' ) {
45
45
return $OsVMImage
46
46
}
47
47
@@ -64,7 +64,7 @@ function getTargetOs {
64
64
}
65
65
66
66
function getTargetArchitecture {
67
- if ($OSVmImage.StartsWith ( ' macOS' , $true , ( Get-Culture ).InvariantCulture) ) {
67
+ if ($OSVmImage -like ' macOS* ' ) {
68
68
return " x64"
69
69
}
70
70
@@ -81,7 +81,7 @@ function getTargetArchitecture {
81
81
}
82
82
83
83
function getToolChain {
84
- if ($OSVmImage.StartsWith ( ' macOS' , $true , ( Get-Culture ).InvariantCulture) ) {
84
+ if ($OSVmImage -like ' macOS* ' ) {
85
85
return " AppleClang 12"
86
86
}
87
87
@@ -109,7 +109,7 @@ function getToolChain {
109
109
}
110
110
111
111
function getTargetPlatform {
112
- if ($OSVmImage.StartsWith ( ' macOS' , $true , ( Get-Culture ).InvariantCulture) ) {
112
+ if ($OSVmImage -like ' macOS* ' ) {
113
113
return " macos"
114
114
}
115
115
You can’t perform that action at this time.
0 commit comments