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.
docstr_tok: ["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"
          )
  
      # add library dirs for class
      library_dirs += self.__class__.library_dirs
  
      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
  import os
  import re
  import warnings
  from .errors import CompileError, LinkError, UnknownFileError, DistutilsPlatformError, DistutilsModuleError
  from .spawn import spawn
  from .file_util import move_file
  from .dir_util import mkpath
  from ._modified import newer_group
  from .util import split_quoted, execute
  from ._log 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