@@ -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" ) {
@@ -1033,7 +1033,7 @@ function Build-CMakeProject {
1033
1033
# Add additional linker flags for generating the debug info.
1034
1034
Append- FlagsDefine $Defines CMAKE_SHARED_LINKER_FLAGS " /debug"
1035
1035
Append- FlagsDefine $Defines CMAKE_EXE_LINKER_FLAGS " /debug"
1036
- } elseif ($Platform -eq " Android" ) {
1036
+ } elseif ($Platform -eq [ Platform ]:: Android) {
1037
1037
# Use a built lld linker as the Android's NDK linker might be too
1038
1038
# old and not support all required relocations needed by the Swift
1039
1039
# runtime.
@@ -1709,7 +1709,7 @@ function Build-CURL([Platform]$Platform, $Arch) {
1709
1709
$ArchName = $Arch.LLVMName
1710
1710
1711
1711
$PlatformDefines = @ {}
1712
- if ($Platform -eq " Android" ) {
1712
+ if ($Platform -eq [ Platform ]:: Android) {
1713
1713
$PlatformDefines += @ {
1714
1714
HAVE_FSEEKO = " 0" ;
1715
1715
}
@@ -1817,7 +1817,7 @@ function Build-CURL([Platform]$Platform, $Arch) {
1817
1817
1818
1818
function Build-Runtime ([Platform ]$Platform , $Arch ) {
1819
1819
$PlatformDefines = @ {}
1820
- if ($Platform -eq " Android" ) {
1820
+ if ($Platform -eq [ Platform ]:: Android) {
1821
1821
$PlatformDefines += @ {
1822
1822
LLVM_ENABLE_LIBCXX = " YES" ;
1823
1823
SWIFT_USE_LINKER = " lld" ;
0 commit comments