parameters: (args)
return_statement: return environment
docstring: Set up environment for build command to interpose compiler wrapper.
docstring_summary: Set up environment for build command to interpose compiler wrapper.
docstring_tokens: Set up environment for build command to interpose compiler wrapper .
function: def setup_environment(args):
      """ Set up environment for build command to interpose compiler wrapper. """
  
      environment = dict(os.environ)
      environment.update(wrapper_environment(args))
      environment.update({
          'CC': COMPILER_WRAPPER_CC,
          'CXX': COMPILER_WRAPPER_CXX,
          'ANALYZE_BUILD_CLANG': args.clang if need_analyzer(args.build) else '',
          'ANALYZE_BUILD_REPORT_DIR': args.output,
          'ANALYZE_BUILD_REPORT_FORMAT': args.output_format,
          'ANALYZE_BUILD_REPORT_FAILURES': 'yes' if args.output_failures else '',
          'ANALYZE_BUILD_PARAMETERS': ' '.join(analyzer_params(args)),
          'ANALYZE_BUILD_FORCE_DEBUG': 'yes' if args.force_debug else '',
          'ANALYZE_BUILD_CTU': json.dumps(get_ctu_config_from_args(args))
      })
      return environment
function_tokens: def setup_environment ( args ) : environment = dict ( os . environ ) environment . update ( wrapper_environment ( args ) ) environment . update ( { 'CC' : COMPILER_WRAPPER_CC , 'CXX' : COMPILER_WRAPPER_CXX , 'ANALYZE_BUILD_CLANG' : args . clang if need_analyzer ( args . build ) else '' , 'ANALYZE_BUILD_REPORT_DIR' : args . output , 'ANALYZE_BUILD_REPORT_FORMAT' : args . output_format , 'ANALYZE_BUILD_REPORT_FAILURES' : 'yes' if args . output_failures else '' , 'ANALYZE_BUILD_PARAMETERS' : ' ' . join ( analyzer_params ( args ) ) , 'ANALYZE_BUILD_FORCE_DEBUG' : 'yes' if args . force_debug else '' , 'ANALYZE_BUILD_CTU' : json . dumps ( get_ctu_config_from_args ( args ) ) } ) return environment