We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 727b089 + b836256 commit 60a8a9dCopy full SHA for 60a8a9d
UNITTESTS/unit_test/test.py
@@ -21,6 +21,7 @@
21
import os
22
import logging
23
import sys
24
+import psutil
25
from shutil import copy
26
27
from .utils import execute_program
@@ -106,6 +107,11 @@ def build_tests(self):
106
107
108
args = [self.make_program]
109
110
+ # Speed up compilation by running on more than one core
111
+ count = psutil.cpu_count()
112
+ args.append("-j{}".format(count+1))
113
+ args.append("-l{}".format(count))
114
+
115
if logging.getLogger().getEffectiveLevel() == logging.DEBUG:
116
args.append("VERBOSE=1")
117
0 commit comments