def _mp_compile(self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None, depends=None):
 (macros, objects, extra_postargs, pp_opts, build) = self._setup_compile(output_dir, macros, include_dirs, sources, depends, extra_postargs)
 cc_args = self._get_cc_args(pp_opts, debug, extra_preargs)
 pool = Pool(MAX_PROCS)
 try:
  print(('Building using %d processes' % pool._processes))
 except:
  pass
 arr = [(self, obj, build, cc_args, extra_postargs, pp_opts) for obj in objects]
 pool.map_async(_mp_compile_one, arr)
 pool.close()
 pool.join()
 return objects

def _mp_compile ( self , sources , output_dir = None , macros = None , include_dirs = None , debug = 0 , extra_preargs = None , extra_postargs = None , depends = None ) : ( macros , objects , extra_postargs , pp_opts , build ) = self . _setup_compile ( output_dir , macros , include_dirs , sources , depends , extra_postargs ) cc_args = self . _get_cc_args ( pp_opts , debug , extra_preargs ) pool = Pool ( MAX_PROCS ) try : print ( ( 'Building using %d processes' % pool . _processes ) ) except : pass arr = [ ( self , obj , build , cc_args , extra_postargs , pp_opts ) for obj in objects ] pool . map_async ( _mp_compile_one , arr ) pool . close ( ) pool . join ( ) return objects
compile one or more source files .