'Used by the platform specific subclass to list available targets.
Raises an error if the platform specifies a name
that is reserved by spack as an alias.'

def add_target(self, name, target):

    if (name in Platform.reserved_targets):
        raise ValueError(('%s    is    a    spack    reserved    alias    and    cannot    be    the    name    of    a    target' % name))
    self.targets[name] = target
