From ec6922ff2407bb81f148bd8b14ee66642ea38a5f Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 24 Jan 2023 20:17:28 +0100 Subject: [PATCH] Produce an error at runtime rather than at compile time for unsupported architectures in cranelift-native (#5627) --- cranelift/native/src/lib.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cranelift/native/src/lib.rs b/cranelift/native/src/lib.rs index 8d2a3ca1cc..653b2dc3ab 100644 --- a/cranelift/native/src/lib.rs +++ b/cranelift/native/src/lib.rs @@ -46,11 +46,6 @@ pub fn builder_with_options(infer_native_flags: bool) -> Result "unsupported architecture", })?; - #[cfg(target_arch = "x86")] - { - compile_error!("Unsupported architecture"); - } - #[cfg(target_arch = "x86_64")] { use cranelift_codegen::settings::Configurable;