#NEWLINE# def _handle_parallel_build( self , parameters ) : #NEWLINE# #INDENT# ' Check if user enters flags to use native building options.\n            If -j4 is detected, biicode changes it for the suitable command\n\n            Attributes:\n                parameters: list of parameters\n            Return:\n                A valid core pattern (string) or None\n        ' #NEWLINE# if ( '--' in self ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# pattern = re . compile ( '-j(\\s+)?[0-9]{1,2}' ) #NEWLINE# for ( index , param ) in enumerate ( parameters ) : #NEWLINE# #INDENT# if pattern . match ( param ) : #NEWLINE# #INDENT# hive_disk_image = self . bii . hive_disk_image #NEWLINE# is_visual = ( 'Visual Studio' in hive_disk_image . settings . cmake . generator ) #NEWLINE# valid_core_pattern = ( '/m:' if is_visual else '-j' ) #NEWLINE# parameters [ index ] = ( '-- %s' % param . replace ( '-j' , valid_core_pattern ) ) #NEWLINE# return ( '-- %s' % param . replace ( '-j' , valid_core_pattern ) )