parameters: (conf)
docstring: Find the program *ldc2* and set the variable *D*
docstring_summary: Find the program *ldc2* and set the variable *D*
docstring_tokens: Find the program * ldc2 * and set the variable * D *
function: def find_ldc2(conf):
  	"""
  	Find the program *ldc2* and set the variable *D*
  	"""
  
  	conf.find_program(['ldc2'], var='D')
  
  	out = conf.cmd_and_log([conf.env.D, '-version'])
  	if out.find("based on DMD v2.") == -1:
  		conf.fatal("detected compiler is not ldc2")
function_tokens: def find_ldc2 ( conf ) : conf . find_program ( [ 'ldc2' ] , var = 'D' ) out = conf . cmd_and_log ( [ conf . env . D , '-version' ] ) if out . find ( "based on DMD v2." ) == - 1 : conf . fatal ( "detected compiler is not ldc2" )