Commit 1722ae1c authored by Jan Kiene's avatar Jan Kiene
Browse files

Merge branch 'use--j-flag-for-make-in-scripts' into 'main'

add -j to make_options in scripts

See merge request !292
parents 7c27cb4b 82e37790
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 = []