@@ -984,7 +984,7 @@ function Build-CMakeProject {
984
984
# ensure that it can be accessed from the cmake cache file.
985
985
$env: NDKPATH = Get-AndroidNDKPath
986
986
}
987
- if ($Platform -eq " Android" ) {
987
+ if ($Platform -eq [ Platform ]:: Android) {
988
988
$vswhere = " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\Installer\vswhere.exe"
989
989
$VSInstallPath = & $vswhere - nologo - latest - products * - property installationPath
990
990
if (Test-Path " ${VSInstallPath} \Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin" ) {
@@ -1034,7 +1034,7 @@ function Build-CMakeProject {
1034
1034
# Add additional linker flags for generating the debug info.
1035
1035
Append- FlagsDefine $Defines CMAKE_SHARED_LINKER_FLAGS " /debug"
1036
1036
Append- FlagsDefine $Defines CMAKE_EXE_LINKER_FLAGS " /debug"
1037
- } elseif ($Platform -eq " Android" ) {
1037
+ } elseif ($Platform -eq [ Platform ]:: Android) {
1038
1038
# Use a built lld linker as the Android's NDK linker might be too
1039
1039
# old and not support all required relocations needed by the Swift
1040
1040
# runtime.
@@ -1706,7 +1706,7 @@ function Build-CURL([Platform]$Platform, $Arch) {
1706
1706
$ArchName = $Arch.LLVMName
1707
1707
1708
1708
$PlatformDefines = @ {}
1709
- if ($Platform -eq " Android" ) {
1709
+ if ($Platform -eq [ Platform ]:: Android) {
1710
1710
$PlatformDefines += @ {
1711
1711
HAVE_FSEEKO = " 0" ;
1712
1712
}
@@ -1814,7 +1814,7 @@ function Build-CURL([Platform]$Platform, $Arch) {
1814
1814
1815
1815
function Build-Runtime ([Platform ]$Platform , $Arch ) {
1816
1816
$PlatformDefines = @ {}
1817
- if ($Platform -eq " Android" ) {
1817
+ if ($Platform -eq [ Platform ]:: Android) {
1818
1818
$PlatformDefines += @ {
1819
1819
LLVM_ENABLE_LIBCXX = " YES" ;
1820
1820
SWIFT_USE_LINKER = " lld" ;
0 commit comments