def GetCompilerPath(target_list, data, options):
 (build_file, _, _) = gyp.common.ParseQualifiedTarget(target_list[0])
 make_global_settings_dict = data[build_file].get('make_global_settings', {})
 for (key, value) in make_global_settings_dict:
  if (key in ['CC', 'CXX']):
   return os.path.join(options.toplevel_dir, value)
 for key in ['CC_target', 'CC', 'CXX']:
  compiler = os.environ.get(key)
  if compiler:
   return compiler
 return 'gcc'

def GetCompilerPath ( target_list , data , options ) : ( build_file , _ , _ ) = gyp . common . ParseQualifiedTarget ( target_list [ 0 ] ) make_global_settings_dict = data [ build_file ] . get ( 'make_global_settings' , { } ) for ( key , value ) in make_global_settings_dict : if ( key in [ 'CC' , 'CXX' ] ) : return os . path . join ( options . toplevel_dir , value ) for key in [ 'CC_target' , 'CC' , 'CXX' ] : compiler = os . environ . get ( key ) if compiler : return compiler return 'gcc'
determine a command that can be used to invoke the compiler .