@@ -133,7 +133,6 @@ param(
133
133
[string ] $WinSDKVersion = " " ,
134
134
[switch ] $Android = $false ,
135
135
[switch ] $SkipBuild = $false ,
136
- [switch ] $SkipRedistInstall = $false ,
137
136
[switch ] $SkipPackaging = $false ,
138
137
[switch ] $IncludeDS2 = $false ,
139
138
[string []] $Test = @ (),
@@ -2141,11 +2140,11 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
2141
2140
- Platform $Platform `
2142
2141
- UseBuiltCompilers ASM, C, CXX, Swift `
2143
2142
- SwiftSDK:$SDKRoot `
2144
- - Defines (@ {
2143
+ - Defines @ {
2144
+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2145
2145
CMAKE_NINJA_FORCE_RESPONSE_FILE = " YES" ;
2146
2146
ENABLE_TESTING = " NO" ;
2147
2147
FOUNDATION_BUILD_TOOLS = if ($Platform -eq " Windows" ) { " YES" } else { " NO" };
2148
- CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2149
2148
CURL_DIR = " $LibraryRoot \curl-8.9.1\usr\lib\$Platform \$ShortArch \cmake\CURL" ;
2150
2149
LibXml2_DIR = " $LibraryRoot \libxml2-2.11.5\usr\lib\$Platform \$ShortArch \cmake\libxml2-2.11.5" ;
2151
2150
ZLIB_LIBRARY = if ($Platform -eq " Windows" ) {
@@ -2160,7 +2159,7 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
2160
2159
_SwiftFoundationICU_SourceDIR = " $SourceCache \swift-foundation-icu" ;
2161
2160
_SwiftCollections_SourceDIR = " $SourceCache \swift-collections" ;
2162
2161
SwiftFoundation_MACRO = " $ ( Get-BuildProjectBinaryCache FoundationMacros) \bin"
2163
- })
2162
+ }
2164
2163
}
2165
2164
}
2166
2165
}
@@ -3014,9 +3013,7 @@ if (-not $SkipBuild) {
3014
3013
Invoke-BuildStep Build-CMark $HostArch
3015
3014
Invoke-BuildStep Build-XML2 Windows $HostArch
3016
3015
Invoke-BuildStep Build-Compilers $HostArch
3017
- }
3018
3016
3019
- if (-not $SkipBuild ) {
3020
3017
foreach ($Arch in $WindowsSDKArchs ) {
3021
3018
Invoke-BuildStep Build-ZLib Windows $Arch
3022
3019
Invoke-BuildStep Build-XML2 Windows $Arch
@@ -3056,9 +3053,7 @@ if (-not $SkipBuild) {
3056
3053
Invoke-BuildStep Write-SDKSettingsPlist Android $Arch
3057
3054
Invoke-BuildStep Write-PlatformInfoPlist $Arch
3058
3055
}
3059
- }
3060
3056
3061
- if (-not $SkipBuild ) {
3062
3057
# Build Macros for distribution
3063
3058
Invoke-BuildStep Build-FoundationMacros Windows $HostArch
3064
3059
Invoke-BuildStep Build-TestingMacros Windows $HostArch
0 commit comments