'Called by the parser to set the compiler.'

def _set_compiler(self, compiler):

    if self.compiler:
        raise DuplicateCompilerSpecError(("Spec    for    '%s'    cannot    have    two    compilers." % self.name))
    self.compiler = compiler
