pub fn to_platform(&self) -> Result<Platform, Error> {
        let mut platform = Platform::new(
            self.triple.to_owned(),
            self.target_features.to_target_features(),
        )?;
        platform.add_flags(self.flags.iter().cloned());
        Ok(platform)
    }
Converts `self` to a `Platform`.

Returns an `Error` if the platform was unknown.
target-spec/src/summaries.rs