void-packages/srcpkgs/rust/patches/xxx-ppcle-gcc.patch

26 lines
871 B
Diff
Raw Normal View History

From bf983e79364d2d1c4a22857fadae8fcdc6646ef3 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Sun, 4 Jul 2021 02:17:26 +0200
Subject: [PATCH] gcc: fix powerpcle being matched as msvc
---
vendor/gcc/src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vendor/gcc/src/lib.rs b/vendor/gcc/src/lib.rs
index 7980281f..05787ceb 100644
--- a/vendor/gcc/src/lib.rs
+++ b/vendor/gcc/src/lib.rs
@@ -1549,7 +1549,7 @@ impl Tool {
let family = if let Some(fname) = path.file_name().and_then(|p| p.to_str()) {
if fname.contains("clang") {
ToolFamily::Clang
- } else if fname.contains("cl") && !fname.contains("uclibc") {
+ } else if fname.ends_with("cl") || fname == "cl.exe" {
ToolFamily::Msvc
} else {
ToolFamily::Gnu
--
2.31.1