Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fixes #716: Stub out parse_x86_cpuid in the non-x86 case;
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr authored and sunfishcode committed Mar 28, 2019
1 parent 58a7db1 commit d477dc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cranelift-native/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ fn parse_x86_cpuid(isa_builder: &mut isa::Builder) -> Result<(), &'static str> {
Ok(())
}

#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
fn parse_x86_cpuid(_isa_builder: &mut isa::Builder) -> Result<(), &'static str> {
unreachable!();
}

#[cfg(test)]
mod tests {
use super::builder;
Expand Down

0 comments on commit d477dc4

Please sign in to comment.