parameters: (_, execution)
docstring: Implement intercept compiler wrapper functionality.
  
      It does generate execution report into target directory.
      The target directory name is from environment variables.
docstring_summary: Implement intercept compiler wrapper functionality.
docstring_tokens: Implement intercept compiler wrapper functionality .
function: def intercept_compiler_wrapper_impl(_, execution):
      """ Implement intercept compiler wrapper functionality.
  
      It does generate execution report into target directory.
      The target directory name is from environment variables. """
  
      message_prefix = 'execution report might be incomplete: %s'
  
      target_dir = os.getenv('INTERCEPT_BUILD_TARGET_DIR')
      if not target_dir:
          logging.warning(message_prefix, 'missing target directory')
          return
      # write current execution info to the pid file
      try:
          target_file_name = str(os.getpid()) + TRACE_FILE_EXTENSION
          target_file = os.path.join(target_dir, target_file_name)
          logging.debug('writing execution report to: %s', target_file)
          write_exec_trace(target_file, execution)
      except IOError:
          logging.warning(message_prefix, 'io problem')
function_tokens: def intercept_compiler_wrapper_impl ( _ , execution ) : message_prefix = 'execution report might be incomplete: %s' target_dir = os . getenv ( 'INTERCEPT_BUILD_TARGET_DIR' ) if not target_dir : logging . warning ( message_prefix , 'missing target directory' ) return # write current execution info to the pid file try : target_file_name = str ( os . getpid ( ) ) + TRACE_FILE_EXTENSION target_file = os . path . join ( target_dir , target_file_name ) logging . debug ( 'writing execution report to: %s' , target_file ) write_exec_trace ( target_file , execution ) except IOError : logging . warning ( message_prefix , 'io problem' )