Skip to content

Commit f701309

Browse files
authored
Merge pull request #77495 from swiftlang/artemcm/FewerEmbeddedStdLibParallelTasks
Attempt to reduce the number of embedded stdlib targets being built simultaneously.
2 parents a2577f0 + dfa1bdb commit f701309

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/Platform/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
8383

8484
add_custom_target(embedded-darwin)
8585
add_dependencies(embedded-libraries embedded-darwin)
86+
87+
set_property(GLOBAL APPEND PROPERTY JOB_POOLS one_job=1)
8688
foreach(entry ${EMBEDDED_STDLIB_TARGET_TRIPLES})
8789
string(REGEX REPLACE "[ \t]+" ";" list "${entry}")
8890
list(GET list 0 arch)
@@ -125,6 +127,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
125127
INSTALL_IN_COMPONENT stdlib
126128
)
127129
add_dependencies(embedded-darwin embedded-darwin-${mod})
130+
set_property(TARGET embedded-darwin-${mod} PROPERTY JOB_POOL_COMPILE one_job)
128131
endforeach()
129132
endif()
130133

0 commit comments

Comments
 (0)