diff --git a/src/lib.rs b/src/lib.rs index 223f1af3..5e4d2ab2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,7 +107,9 @@ impl Build { // stuff depends on, and we don't bind to any of that in any case. .arg("no-async"); - if target.contains("musl") { + if !target.contains("x86_64-unknown-linux-gnu") + && !target.contains("aarch64-unknown-linux-gnu") + { // 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");