Remove unused import when cross-compiling, fixes #1022

This commit is contained in:
Andrew Brown
2019-09-12 09:02:22 -07:00
parent 92a01c816d
commit cadd0ac655

View File

@@ -26,7 +26,6 @@
#![no_std] #![no_std]
use cranelift_codegen::isa; use cranelift_codegen::isa;
use cranelift_codegen::settings::Configurable;
use target_lexicon::Triple; use target_lexicon::Triple;
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
@@ -50,6 +49,7 @@ pub fn builder() -> Result<isa::Builder, &'static str> {
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
fn parse_x86_cpuid(isa_builder: &mut isa::Builder) -> Result<(), &'static str> { fn parse_x86_cpuid(isa_builder: &mut isa::Builder) -> Result<(), &'static str> {
use cranelift_codegen::settings::Configurable;
let cpuid = CpuId::new(); let cpuid = CpuId::new();
if let Some(info) = cpuid.get_feature_info() { if let Some(info) = cpuid.get_feature_info() {