Skip to content

Commit 0721124

Browse files
authored
Merge pull request #79029 from compnerd/build-cleanups
utils: minor build.ps1 tweaks
2 parents ab26b8b + 3f4d0d2 commit 0721124

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

utils/build.ps1

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ param(
133133
[string] $WinSDKVersion = "",
134134
[switch] $Android = $false,
135135
[switch] $SkipBuild = $false,
136-
[switch] $SkipRedistInstall = $false,
137136
[switch] $SkipPackaging = $false,
138137
[switch] $IncludeDS2 = $false,
139138
[string[]] $Test = @(),
@@ -2141,11 +2140,11 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
21412140
-Platform $Platform `
21422141
-UseBuiltCompilers ASM,C,CXX,Swift `
21432142
-SwiftSDK:$SDKRoot `
2144-
-Defines (@{
2143+
-Defines @{
2144+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
21452145
CMAKE_NINJA_FORCE_RESPONSE_FILE = "YES";
21462146
ENABLE_TESTING = "NO";
21472147
FOUNDATION_BUILD_TOOLS = if ($Platform -eq "Windows") { "YES" } else { "NO" };
2148-
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
21492148
CURL_DIR = "$LibraryRoot\curl-8.9.1\usr\lib\$Platform\$ShortArch\cmake\CURL";
21502149
LibXml2_DIR = "$LibraryRoot\libxml2-2.11.5\usr\lib\$Platform\$ShortArch\cmake\libxml2-2.11.5";
21512150
ZLIB_LIBRARY = if ($Platform -eq "Windows") {
@@ -2160,7 +2159,7 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
21602159
_SwiftFoundationICU_SourceDIR = "$SourceCache\swift-foundation-icu";
21612160
_SwiftCollections_SourceDIR = "$SourceCache\swift-collections";
21622161
SwiftFoundation_MACRO = "$(Get-BuildProjectBinaryCache FoundationMacros)\bin"
2163-
})
2162+
}
21642163
}
21652164
}
21662165
}
@@ -3014,9 +3013,7 @@ if (-not $SkipBuild) {
30143013
Invoke-BuildStep Build-CMark $HostArch
30153014
Invoke-BuildStep Build-XML2 Windows $HostArch
30163015
Invoke-BuildStep Build-Compilers $HostArch
3017-
}
30183016

3019-
if (-not $SkipBuild) {
30203017
foreach ($Arch in $WindowsSDKArchs) {
30213018
Invoke-BuildStep Build-ZLib Windows $Arch
30223019
Invoke-BuildStep Build-XML2 Windows $Arch
@@ -3056,9 +3053,7 @@ if (-not $SkipBuild) {
30563053
Invoke-BuildStep Write-SDKSettingsPlist Android $Arch
30573054
Invoke-BuildStep Write-PlatformInfoPlist $Arch
30583055
}
3059-
}
30603056

3061-
if (-not $SkipBuild) {
30623057
# Build Macros for distribution
30633058
Invoke-BuildStep Build-FoundationMacros Windows $HostArch
30643059
Invoke-BuildStep Build-TestingMacros Windows $HostArch

0 commit comments

Comments
 (0)