Skip to content

Commit

Permalink
Add support for *-pc-windows-gnullvm targets
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AlexTMjugador authored and BenjaminRi committed Nov 27, 2024
1 parent dd11dc1 commit e40f2bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit e40f2bc

Please sign in to comment.