aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2016-03-17 19:32:46 +0100
committerLaurent Bachelier <laurent@bachelier.name>2016-03-17 19:32:46 +0100
commitc233d24ca2246c281df745254bc2c8b191788ebc (patch)
tree8baca7b30e06598ed1e75ae17e8eaea5e768c535
parentDocument optional dependency (diff)
downloadbrutha-c233d24ca2246c281df745254bc2c8b191788ebc.tar.xz
Make parallel the default, if available
-rw-r--r--brutha/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/brutha/util.py b/brutha/util.py
index 7838ca4..1a44db5 100644
--- a/brutha/util.py
+++ b/brutha/util.py
@@ -47,8 +47,8 @@ def require_executable(name, names=None):
def default_output(cores=None):
if cores and cores > 1:
- if find_executable('make', ['gmake', 'make']):
- return 'make'
if find_executable('parallel'):
return 'parallel'
+ if find_executable('make', ['gmake', 'make']):
+ return 'make'
return 'sh'