Skip to content

Commit 8a665e8

Browse files
committed
DNM: enable verbosity on Foundation build for debugging
1 parent e63c61c commit 8a665e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utils/build.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2550,9 +2550,9 @@ function Build-Foundation {
25502550
}
25512551

25522552
$SwiftFlags = if ($Static) {
2553-
@("-static-stdlib", "-Xfrontend", "-use-static-resource-dir")
2553+
@("-static-stdlib", "-Xfrontend", "-use-static-resource-dir", "-v", "-num-threads", "1")
25542554
} else {
2555-
@()
2555+
@("-v", "-num-threads", "1")
25562556
}
25572557

25582558
$DispatchCMakeModules = if ($Static) {
@@ -2561,6 +2561,8 @@ function Build-Foundation {
25612561
Get-ProjectCMakeModules $Platform Dispatch
25622562
}
25632563

2564+
Invoke-IsolatingEnvVars {
2565+
$env:VERBOSE = "1"
25642566
Build-CMakeProject `
25652567
-Src $SourceCache\swift-corelibs-foundation `
25662568
-Bin $FoundationBinaryCache `
@@ -2592,6 +2594,7 @@ function Build-Foundation {
25922594
SwiftFoundation_MACRO = "$(Get-ProjectBinaryCache $BuildPlatform FoundationMacros)\bin"
25932595
}
25942596
}
2597+
}
25952598

25962599
function Test-Foundation {
25972600
# Foundation tests build via swiftpm rather than CMake

0 commit comments

Comments
 (0)