summaryrefslogtreecommitdiffstats
path: root/bin/metabuild
diff options
context:
space:
mode:
Diffstat (limited to 'bin/metabuild')
-rwxr-xr-xbin/metabuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/metabuild b/bin/metabuild
index 9e303a2..9043341 100755
--- a/bin/metabuild
+++ b/bin/metabuild
@@ -41,6 +41,12 @@ else:
# "Constants" (well, some are derived from the environment)
subprocess_nice_args = ['nice', 'ionice', '-c', '3', '-t']
+
+# In the future we should test for this better; possibly implement a
+# custom fork handler
+if os.uname()[0] == 'Linux':
+ subprocess_nice_args = ['chrt', '--idle', '0'] + subprocess_nice_args
+
default_make_parallel = ['-j', '%d' % (cpu_count() * 6, )]
user_specified_jobs = False
configargs = ['--prefix=' + root, '--libdir=' + libdir]