Skip to content

Commit 7a7d84d

Browse files
committed
Try to fix mingw xcompile from Linux
1 parent 4f52a4f commit 7a7d84d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,13 @@ impl Build {
545545
// executable to run.
546546
let windres = format!("{}-windres", &path[..path.len() - 4]);
547547
configure.env("WINDRES", &windres);
548+
549+
// Cross-compiling to MinGW apparently has different enough
550+
// headers that QUIC no longer compiles. Defer fixing this to
551+
// some future day...
552+
if !cfg!(windows) {
553+
configure.arg("no-quic");
554+
}
548555
}
549556

550557
if target.contains("emscripten") {

0 commit comments

Comments
 (0)