Produce an error at runtime rather than at compile time for unsupported architectures in cranelift-native (#5627)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user