Produce an error at runtime rather than at compile time for unsupported architectures in cranelift-native (#5627)

This commit is contained in:
bjorn3
2023-01-24 20:17:28 +01:00
committed by GitHub
parent bfc6aad184
commit ec6922ff24

View File

@@ -46,11 +46,6 @@ pub fn builder_with_options(infer_native_flags: bool) -> Result<isa::Builder, &'
isa::LookupError::Unsupported => "unsupported architecture", isa::LookupError::Unsupported => "unsupported architecture",
})?; })?;
#[cfg(target_arch = "x86")]
{
compile_error!("Unsupported architecture");
}
#[cfg(target_arch = "x86_64")] #[cfg(target_arch = "x86_64")]
{ {
use cranelift_codegen::settings::Configurable; use cranelift_codegen::settings::Configurable;