File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1687,6 +1687,12 @@ function Build-Compilers() {
16871687 $SwiftFlags += @ (" -Xcc" , " -D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH" );
16881688 }
16891689
1690+ # Limit the number of parallel links to avoid OOM when debug info is enabled
1691+ $DebugOptions = @ {}
1692+ if ($DebugInfo ) {
1693+ $DebugOptions = @ { SWIFT_PARALLEL_LINK_JOBS = " 4" ; }
1694+ }
1695+
16901696 New-Item - ItemType SymbolicLink - Path " $BinaryCache \$ ( $HostArch.LLVMTarget ) \compilers" - Target " $BinaryCache \5" - ErrorAction Ignore
16911697 Build-CMakeProject `
16921698 - Src $SourceCache \llvm- project\llvm `
@@ -1737,7 +1743,7 @@ function Build-Compilers() {
17371743 SWIFT_STDLIB_ASSERTIONS = " NO" ;
17381744 SWIFTSYNTAX_ENABLE_ASSERTIONS = " NO" ;
17391745 " cmark-gfm_DIR" = " $ ( $Arch.ToolchainInstallRoot ) \usr\lib\cmake" ;
1740- })
1746+ } + $DebugOptions )
17411747 }
17421748
17431749 $Settings = @ {
You can’t perform that action at this time.
0 commit comments