Browse Source

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

pull/5629/head
bjorn3 2 years ago
committed by GitHub
parent
commit
ec6922ff24
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      cranelift/native/src/lib.rs

5
cranelift/native/src/lib.rs

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

Loading…
Cancel
Save