parameters: (conf)
docstring: Detect the Sun C compiler
docstring_summary: Detect the Sun C compiler
docstring_tokens: Detect the Sun C compiler
function: def find_scc(conf):
  	"""
  	Detect the Sun C compiler
  	"""
  	v = conf.env
  	cc = None
  	if v['CC']: cc = v['CC']
  	elif 'CC' in conf.environ: cc = conf.environ['CC']
  	if not cc: cc = conf.find_program('cc', var='CC')
  	if not cc: conf.fatal('Could not find a Sun C compiler')
  	cc = conf.cmd_to_list(cc)
  
  	try:
  		conf.cmd_and_log(cc + ['-flags'])
  	except Exception:
  		conf.fatal('%r is not a Sun compiler' % cc)
  
  	v['CC']  = cc
  	v['CC_NAME'] = 'sun'
  	conf.get_suncc_version(cc)
function_tokens: def find_scc ( conf ) : v = conf . env cc = None if v [ 'CC' ] : cc = v [ 'CC' ] elif 'CC' in conf . environ : cc = conf . environ [ 'CC' ] if not cc : cc = conf . find_program ( 'cc' , var = 'CC' ) if not cc : conf . fatal ( 'Could not find a Sun C compiler' ) cc = conf . cmd_to_list ( cc ) try : conf . cmd_and_log ( cc + [ '-flags' ] ) except Exception : conf . fatal ( '%r is not a Sun compiler' % cc ) v [ 'CC' ] = cc v [ 'CC_NAME' ] = 'sun' conf . get_suncc_version ( cc )