From e40f2bca09b46fee1c0fc525b3a43114660f77c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Sun, 24 Nov 2024 21:43:56 +0100 Subject: [PATCH] Add support for `*-pc-windows-gnullvm` targets These are tier 2 LLVM-based toolchains, so the LLVM prefix for windres should be used. I've tested these changes by compiling a "hello world" executable for the target in a Docker container and everything worked well, as far as I could see. --- lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib.rs b/lib.rs index b317821..43a618c 100644 --- a/lib.rs +++ b/lib.rs @@ -227,6 +227,10 @@ impl WindowsResource { // MinGW supports ARM64 only with an LLVM-based toolchain // (x86 users might also be using LLVM, but we can't tell that from the Rust target...) "aarch64-pc-windows-gnu" => "llvm-", + // *-gnullvm targets by definition use LLVM-based toolchains + "x86_64-pc-windows-gnullvm" + | "i686-pc-windows-gnullvm" + | "aarch64-pc-windows-gnullvm" => "llvm-", // fail safe _ => { println!(