From 11389d0432490cf9c6e9255cec61d4209fed2556 Mon Sep 17 00:00:00 2001 From: Xintao Date: Mon, 8 Jun 2020 14:12:29 +0800 Subject: [PATCH] address comment Signed-off-by: Xintao --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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");