From abd66865145972e531604f51882216ac89dd274c Mon Sep 17 00:00:00 2001 From: Henry Chen Date: Fri, 29 Sep 2023 02:54:04 +0800 Subject: [PATCH] build.rs: fix mips32r6 detection for libc feature switch (#856) --- 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");