From ffe8f058e3bf639a9b0adbfcbefd1c99a88c5d14 Mon Sep 17 00:00:00 2001 From: Maksim Bondarenkov Date: Mon, 24 Nov 2025 12:30:57 +0300 Subject: [PATCH] sys: support *-windows-gnullvm targets they were introduced in Rust long ago. C compilers treat both clang-based and gcc-based toolchain as *-w64-mingw32 Signed-off-by: Maksim Bondarenkov --- jemalloc-sys/build.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jemalloc-sys/build.rs b/jemalloc-sys/build.rs index 07b60b7fe..f1a10a49e 100644 --- a/jemalloc-sys/build.rs +++ b/jemalloc-sys/build.rs @@ -420,8 +420,9 @@ fn gnu_target(target: &str) -> String { match target { "i686-pc-windows-msvc" => "i686-pc-win32".to_string(), "x86_64-pc-windows-msvc" => "x86_64-pc-win32".to_string(), - "i686-pc-windows-gnu" => "i686-w64-mingw32".to_string(), - "x86_64-pc-windows-gnu" => "x86_64-w64-mingw32".to_string(), + "i686-pc-windows-gnu" | "i686-pc-windows-gnullvm" => "i686-w64-mingw32".to_string(), + "x86_64-pc-windows-gnu" | "x86_64-pc-windows-gnullvm" => "x86_64-w64-mingw32".to_string(), + "aarch64-pc-windows-gnullvm" => "aarch64-w64-mingw32".to_string(), "armv7-linux-androideabi" => "arm-linux-androideabi".to_string(), "riscv64gc-unknown-linux-gnu" => "riscv64-linux-gnu".to_string(), "riscv64gc-unknown-linux-musl" => "riscv64-linux-musl".to_string(),