Skip to content

Commit 3f4d0d2

Browse files
committed
utils: remove an unnecessary parenthetical
We can pass the raw dictionary directly, remove the unnecessary punctuation.
1 parent ffdebdd commit 3f4d0d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,11 +2083,11 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
20832083
-Platform $Platform `
20842084
-UseBuiltCompilers ASM,C,CXX,Swift `
20852085
-SwiftSDK:$SDKRoot `
2086-
-Defines (@{
2086+
-Defines @{
2087+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
20872088
CMAKE_NINJA_FORCE_RESPONSE_FILE = "YES";
20882089
ENABLE_TESTING = "NO";
20892090
FOUNDATION_BUILD_TOOLS = if ($Platform -eq "Windows") { "YES" } else { "NO" };
2090-
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
20912091
CURL_DIR = "$LibraryRoot\curl-8.9.1\usr\lib\$Platform\$ShortArch\cmake\CURL";
20922092
LibXml2_DIR = "$LibraryRoot\libxml2-2.11.5\usr\lib\$Platform\$ShortArch\cmake\libxml2-2.11.5";
20932093
ZLIB_LIBRARY = if ($Platform -eq "Windows") {
@@ -2102,7 +2102,7 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
21022102
_SwiftFoundationICU_SourceDIR = "$SourceCache\swift-foundation-icu";
21032103
_SwiftCollections_SourceDIR = "$SourceCache\swift-collections";
21042104
SwiftFoundation_MACRO = "$(Get-BuildProjectBinaryCache FoundationMacros)\bin"
2105-
})
2105+
}
21062106
}
21072107
}
21082108
}

0 commit comments

Comments
 (0)