Skip to content

Commit f150d3f

Browse files
Don't require the second part of a quad to be -pc- for -windows-msvc/-windows-gnu*
Closes: #77
1 parent 5eb4fd5 commit f150d3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/non_windows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl Compiler {
6262
return guess_compiler_variant(&rc);
6363
}
6464

65-
if target.ends_with("-pc-windows-gnu") || target.ends_with("-pc-windows-gnullvm") {
65+
if target.ends_with("-windows-gnu") || target.ends_with("-windows-gnullvm") {
6666
let executable = format!("{}-w64-mingw32-windres", &target[0..target.find('-').unwrap_or_default()]);
6767
if is_runnable(&executable) {
6868
return Ok(Compiler {
@@ -72,7 +72,7 @@ impl Compiler {
7272
} else {
7373
return Err(executable.into());
7474
}
75-
} else if target.ends_with("-pc-windows-msvc") {
75+
} else if target.ends_with("-windows-msvc") {
7676
if is_runnable("llvm-rc") {
7777
return Ok(Compiler {
7878
tp: CompilerType::LlvmRc {

0 commit comments

Comments
 (0)