From 23f40d1ddc358bb7ba3d3fe125676e91337c5af3 Mon Sep 17 00:00:00 2001 From: Henry Chen Date: Thu, 28 Sep 2023 18:38:02 +0800 Subject: [PATCH] build.rs: fix mips32r6 detection for libc feature switch --- build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 28891caea..d95f9a906 100644 --- a/build.rs +++ b/build.rs @@ -94,8 +94,7 @@ fn main() { || !inline_asm_name_present || is_unsupported_abi || miri - || ((arch == "powerpc64" || arch == "mips" || arch == "mips64" || arch == "mips64r6") - && !rustix_use_experimental_asm); + || ((arch == "powerpc64" || arch.starts_with("mips")) && !rustix_use_experimental_asm); if libc { // Use the libc backend. use_feature("libc");