Skip to content

Commit 0d32d8b

Browse files
committed
utils: make unify SDKSettings plist and json
Alter the PList and JSON to match contents. While the primary consumer for the PList is SPM, this synchronises the two just in case. This is in response to feedback from @jakepetroules.
1 parent 9ae142c commit 0d32d8b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

utils/build.ps1

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,15 +2283,6 @@ function Build-ExperimentalRuntime {
22832283
}
22842284

22852285
function Write-SDKSettings([OS] $OS) {
2286-
$SDKSettings = @{
2287-
DefaultProperties = @{
2288-
}
2289-
}
2290-
if ($OS -eq [OS]::Windows) {
2291-
$SDKSettings.DefaultProperties.DEFAULT_USE_RUNTIME = "MD"
2292-
}
2293-
Write-PList -Settings $SDKSettings -Path "$(Get-SwiftSDK $OS)\SDKSettings.plist"
2294-
22952286
$SDKSettings = @{
22962287
CanonicalName = $OS.ToString().ToLowerInvariant()
22972288
DisplayName = $OS.ToString()
@@ -2328,6 +2319,7 @@ function Write-SDKSettings([OS] $OS) {
23282319
}
23292320
}
23302321
$SDKSettings | ConvertTo-JSON -Depth 4 | Out-FIle -FilePath "$(Get-SwiftSDK $OS)\SDKSettings.json"
2322+
Write-PList -Settings $SDKSettings -Path "$(Get-SwiftSDK $OS)\SDKSettings.plist"
23312323
}
23322324

23332325
function Build-Dispatch([Hashtable] $Platform) {

0 commit comments

Comments
 (0)