From e7271691184d34e0c39ebc64d61079d21a69b2e9 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Tue, 2 Jan 2024 10:12:36 +0100 Subject: [PATCH] Wtf mips --- src/expr.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/expr.rs b/src/expr.rs index 735ce48..faf8916 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -124,6 +124,20 @@ impl TargetMatcher for target_lexicon::Triple { } else if arch == &targ::Arch::x86_64 { self.architecture == Architecture::X86_64 || self.architecture == Architecture::X86_64h + } else if arch == &targ::Arch::mips32r6 { + matches!( + self.architecture, + Architecture::Mips32( + Mips32Architecture::Mipsisa32r6 | Mips32Architecture::Mipsisa32r6el + ) + ) + } else if arch == &targ::Arch::mips64r6 { + matches!( + self.architecture, + Architecture::Mips64( + Mips64Architecture::Mipsisa64r6 | Mips64Architecture::Mipsisa64r6el + ) + ) } else { match arch.0.parse::() { Ok(a) => match (self.architecture, a) {