parameters: (self, cc, source, target)
docstring: Check whether the given compiler is viable, i.e. whether it
          can compile a simple example file. Returns True if the
          compiler works, and False otherwise.
docstring_summary: Check whether the given compiler is viable, i.e. whether it
          can compile a simple example file. Returns True if the
          compiler works, and False otherwise.
docstring_tokens: Check whether the given compiler is viable i . e . whether it can compile a simple example file . Returns True if the compiler works and False otherwise .
function: def _check_compiler(self, cc, source, target):
          """
          Check whether the given compiler is viable, i.e. whether it
          can compile a simple example file. Returns True if the
          compiler works, and False otherwise.
          """
          e = self._executable
          f = self._flavor
          try:
              self.executable = cc
              proc = self.compile(source, target, silent=True)
              ret = proc.wait()
              return (ret == 0)
          except:
              return False
          finally:
              self._executable = e
              self._flavor = f
function_tokens: def _check_compiler ( self , cc , source , target ) : e = self . _executable f = self . _flavor try : self . executable = cc proc = self . compile ( source , target , silent = True ) ret = proc . wait ( ) return ( ret == 0 ) except : return False finally : self . _executable = e self . _flavor = f