From cb6e9970edc676b560c927bd665c3f401f20ed0e Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sat, 25 Jan 2020 00:33:31 +0100 Subject: [PATCH] range-v3: Fix the AArch64 build by disabling the tests Another reference for working AArch64 builds: https://git.alpinelinux.org/aports/tree/community/range-v3/APKBUILD Co-Authored-By: Ilya Fedin --- pkgs/development/libraries/range-v3/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/range-v3/default.nix b/pkgs/development/libraries/range-v3/default.nix index 56c5754831ef..ca2c7d9b70fb 100644 --- a/pkgs/development/libraries/range-v3/default.nix +++ b/pkgs/development/libraries/range-v3/default.nix @@ -13,7 +13,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; - doCheck = true; + # Building the tests currently fails on AArch64 due to internal compiler + # errors (with GCC 9.2): + cmakeFlags = stdenv.lib.optional stdenv.isAarch64 "-DRANGE_V3_TESTS=OFF"; + + doCheck = !stdenv.isAarch64; checkTarget = "test"; enableParallelBuilding = true;