Skip to content

Commit 51c4d31

Browse files
HACK: throttle the number of cores to avoid OOM on the CI
1 parent a3b9457 commit 51c4d31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/cxx_debugging/tools/bootstrap.py

+4
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ def stage2(source_dir, stage1_dir, OPTIONS):
190190
maybe_cmake(binary_dir, cmake_args, OPTIONS.verbose)
191191

192192
num_cores = os.cpu_count()
193+
# HACK: throttle the number of cores to avoid OOM on the CI
194+
if os.getenv('CI'):
195+
num_cores = min(num_cores, 2)
196+
193197
env = os.environ.copy()
194198

195199
if not OPTIONS.no_check:

0 commit comments

Comments
 (0)