From d4e1f30e8f64456cf726225ef9fcb485979429e1 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 1 Aug 2023 21:33:57 +1000 Subject: [PATCH] Disable `sha1-asm` or `zlib-ng` on x86_64 linux (#1236) Try to fix recent `Illegal instructions` happened in CI. Signed-off-by: Jiahao XU --- justfile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/justfile b/justfile index 8814d409..04cd854a 100644 --- a/justfile +++ b/justfile @@ -74,19 +74,14 @@ support-pkg-config := if target == target-host { if target-os == "linux" { "true" } else { "" } } else { "" } -enable-git-max-perf-feature := if target == "x86_64-apple-darwin" { - "true" +#} else if target == "x86_64-unknown-linux-gnu" { +# ",zlib-ng" +#} else if target == "x86_64-unknown-linux-musl" { +# ",zlib-ng" +git-max-perf-feature := if target == "x86_64-apple-darwin" { + ",zlib-ng" } else if target == "aarch64-apple-darwin" { - "true" -} else if target == "x86_64-unknown-linux-gnu" { - "true" -} else if target == "x86_64-unknown-linux-musl" { - "true" -} else { - "false" -} -git-max-perf-feature := if enable-git-max-perf-feature == "true" { - ",git-max-perf" + ",zlib-ng" } else if target-os == "windows" { ",zlib-ng" } else if target == "aarch64-unknown-linux-gnu" {