From 9fc8345a5b92277410a54dd4571961061db3f0b2 Mon Sep 17 00:00:00 2001 From: knj Date: Fri, 25 Nov 2022 13:18:01 +0100 Subject: [PATCH] add -j to make_options in scripts --- scripts/pyivastest/IvasSvnBuilder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/pyivastest/IvasSvnBuilder.py b/scripts/pyivastest/IvasSvnBuilder.py index d34b64fabe..f12e714286 100644 --- a/scripts/pyivastest/IvasSvnBuilder.py +++ b/scripts/pyivastest/IvasSvnBuilder.py @@ -41,6 +41,7 @@ import xml.etree.ElementTree import logging from getpass import getpass import urllib.parse +from multiprocessing import cpu_count from pyivastest.IvasModeRunner import * from pyivastest.IvasModeAnalyzer import * @@ -1176,7 +1177,9 @@ class IvasBuilderAndRunner(IvasBaseClass): max_workers=1, ): - make_options = list() + n_cpus = cpu_count() + # do not use all cores to avoid weird getting-stuck issues observed on Mac... + make_options = ["-j" ,f"{n_cpus - 2}"] run_tool = "" if defines_to_enable is None: defines_to_enable_check = [] -- GitLab