def validate_cross_install(self, environment):
    if (environment.is_cross_build() and (not self.is_cross) and self.need_install):
        raise InvalidArguments('Tried to install a natively built target in a cross build.')
def validate_cross_install(self, environment):
    if (environment.is_cross_build() and (not self.is_cross) and self.need_install):
        raise InvalidArguments('Tried to install a natively built target in a cross build.')