diff --git a/src/lib.rs b/src/lib.rs index 9f0e249c..bfa49668 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -102,17 +102,20 @@ impl Build { // Nothing related to zlib please .arg("no-comp") .arg("no-zlib") - .arg("no-zlib-dynamic") - // MUSL doesn't implement some of the libc functions that the async - // stuff depends on, and we don't bind to any of that in any case. - .arg("no-async"); + .arg("no-zlib-dynamic"); - if target.contains("musl") || target.contains("windows") { + if target.contains("musl") || target.contains("mingw") { // This actually fails to compile on musl (it needs linux/version.h // right now) but we don't actually need this most of the time. configure.arg("no-engine"); } + if target.contains("musl") { + // MUSL doesn't implement some of the libc functions that the async + // stuff depends on, and we don't bind to any of that in any case. + configure.arg("no-async"); + } + // On Android it looks like not passing no-stdio may cause a build // failure (#13), but most other platforms need it for things like // loading system certificates so only disable it on Android.