Build a [TestFileCompiler] using the host machine's ISA and the passed flags.
(flags: settings::Flags)
| 127 | |
| 128 | /// Build a [TestFileCompiler] using the host machine's ISA and the passed flags. |
| 129 | pub fn with_host_isa(flags: settings::Flags) -> Result<Self> { |
| 130 | let builder = builder_with_options(true) |
| 131 | .map_err(anyhow::Error::msg) |
| 132 | .context("Unable to build a TargetIsa for the current host")?; |
| 133 | let isa = builder.finish(flags)?; |
| 134 | Ok(Self::new(isa)) |
| 135 | } |
| 136 | |
| 137 | /// Build a [TestFileCompiler] using the host machine's ISA and the default flags for this |
| 138 | /// ISA. |
nothing calls this directly
no test coverage detected