Skip to content

Commit af42bbd

Browse files
authored
Honor EMCC_CORES in test runner's build_library (emscripten-core#11600)
This is important on circleci where the machines report a lot of cores but we don't want to actually use that many (we force the core count 4 there)..
1 parent d58d738 commit af42bbd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ jobs:
367367
executor: bionic
368368
steps:
369369
- checkout
370+
- run: pip2 install flake8==3.7.8
371+
- run: pip3 install flake8==3.7.8
370372
- run: python2 -m flake8 --show-source --statistics
371373
- run: python3 -m flake8 --show-source --statistics
372374
test-fastcomp-other:

tests/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ def get_library(self, name, generated_libs, configure=['sh', './configure'],
940940
configure_args=[], make=['make'], make_args=None,
941941
env_init={}, cache_name_extra='', native=False):
942942
if make_args is None:
943-
make_args = ['-j', str(multiprocessing.cpu_count())]
943+
make_args = ['-j', str(building.get_num_cores())]
944944

945945
build_dir = self.get_build_dir()
946946
output_dir = self.get_dir()

0 commit comments

Comments
 (0)