diff --git a/wscript b/wscript index 6a5726c794..b6f8380696 100644 --- a/wscript +++ b/wscript @@ -19,6 +19,12 @@ blddir = 'build' jobs=1 if os.environ.has_key('JOBS'): jobs = int(os.environ['JOBS']) +else: + try: + import multiprocessing + jobs = multiprocessing.cpu_count() + except: + pass def set_options(opt): # the gcc module provides a --debug-level option