class_docstr: Abstract base class to define the interface that must be implemented
  by real compiler classes.  Also has some utility methods used by
  several compiler classes.
  
  The basic idea behind a compiler abstraction class is that each
  instance can be used for all the compile/link steps in building a
  single project.  Thus, attributes common to all of those compile and
  link steps -- include directories, macros to define, libraries to link
  against, etc. -- are attributes of the compiler instance.  To allow for
  variability in how individual files are treated, most of those
  attributes may be varied on a per-compilation or per-link basis.
class_docstr_tok: ["Abstract","base","class","to","define","the","interface","that","must","be","implemented","by","real","compiler","classes",".","Also","has","some","utility","methods","used","by","several","compiler","classes",".","The","basic","idea","behind","a","compiler","abstraction","class","is","that","each","instance","can","be","used","for","all","the","compile\/link","steps","in","building","a","single","project",".","Thus",",","attributes","common","to","all","of","those","compile","and","link","steps","--","include","directories",",","macros","to","define",",","libraries","to","link","against",",","etc",".","--","are","attributes","of","the","compiler","instance",".","To","allow","for","variability","in","how","individual","files","are","treated",",","most","of","those","attributes","may","be","varied","on","a","per-compilation","or","per-link","basis","."]
docstr: Typecheck and fix up some of the arguments supplied to the
  'link_*' methods.  Specifically: ensure that all arguments are
  lists, and augment them with their permanent versions
  (eg. 'self.libraries' augments 'libraries').  Return a tuple with
  fixed versions of all arguments.
code: def _fix_lib_args(
      self, libraries, library_dirs, runtime_library_dirs
  ):
      """Typecheck and fix up some of the arguments supplied to the
      'link_*' methods.  Specifically: ensure that all arguments are
      lists, and augment them with their permanent versions
      (eg. 'self.libraries' augments 'libraries').  Return a tuple with
      fixed versions of all arguments.
      """
      if libraries is None:
          libraries = self.libraries
      elif isinstance(libraries, (list, tuple)):
          libraries = list(libraries) + (self.libraries or [])
      else:
          raise TypeError(
              "'libraries' (if supplied) must be a list of strings"
          )
  
      if library_dirs is None:
          library_dirs = self.library_dirs
      elif isinstance(library_dirs, (list, tuple)):
          library_dirs = list(library_dirs) + (self.library_dirs or [])
      else:
          raise TypeError(
              "'library_dirs' (if supplied) must be a list of strings"
          )
  
      if runtime_library_dirs is None:
          runtime_library_dirs = self.runtime_library_dirs
      elif isinstance(runtime_library_dirs, (list, tuple)):
          runtime_library_dirs = list(runtime_library_dirs) + (
              self.runtime_library_dirs or []
          )
      else:
          raise TypeError(
              "'runtime_library_dirs' (if supplied) "
              "must be a list of strings"
          )
  
      return (libraries, library_dirs, runtime_library_dirs)
  
imports: import sys, os, re
  from distutils.errors import *
  from distutils.spawn import spawn
  from distutils.file_util import move_file
  from distutils.dir_util import mkpath
  from distutils.dep_util import newer_group
  from distutils.util import split_quoted, execute
  from distutils import log
label_desc: Use image node_id 23 for calling the CCompiler obj's underlying member method code with example usage: obj._fix_lib_args(libraries, library_dirs, runtime_library_dirs) and returns: libraries,  library_dirs,  runtime_library_dirs