parameters: (conf, fc)
docstring: get the compiler version
docstring_summary: get the compiler version
docstring_tokens: get the compiler version
function: def get_ifort_version(conf, fc):
  	"""get the compiler version"""
  
  	version_re = re.compile(r"ifort\s*\(IFORT\)\s*(?P<major>\d*)\.(?P<minor>\d*)", re.I).search
  	cmd = fc + ['--version']
  	out, err = fc_config.getoutput(conf, cmd, stdin=False)
  	if out:
  		match = version_re(out)
  	else:
  		match = version_re(err)
  	if not match:
  		conf.fatal('cannot determine ifort version.')
  	k = match.groupdict()
  	conf.env['FC_VERSION'] = (k['major'], k['minor'])
function_tokens: def get_ifort_version ( conf , fc ) : version_re = re . compile ( r"ifort\s*\(IFORT\)\s*(?P<major>\d*)\.(?P<minor>\d*)" , re . I ) . search cmd = fc + [ '--version' ] out , err = fc_config . getoutput ( conf , cmd , stdin = False ) if out : match = version_re ( out ) else : match = version_re ( err ) if not match : conf . fatal ( 'cannot determine ifort version.' ) k = match . groupdict ( ) conf . env [ 'FC_VERSION' ] = ( k [ 'major' ] , k [ 'minor' ] )