From a8badac01b7ec38146fdca30a49d24f76436e93e Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 19 May 2024 00:18:57 +0300 Subject: [PATCH] xtensor: always build tests --- pkgs/development/libraries/xtensor/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/xtensor/default.nix b/pkgs/development/libraries/xtensor/default.nix index 8682b32a45e6..da85a37ab5bc 100644 --- a/pkgs/development/libraries/xtensor/default.nix +++ b/pkgs/development/libraries/xtensor/default.nix @@ -32,7 +32,9 @@ stdenv.mkDerivation (finalAttrs: { ]; cmakeFlags = [ - (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck ) + # Always build the tests, even if not running them, because testing whether + # they can be built is a test in itself. + (lib.cmakeBool "BUILD_TESTS" true) (lib.cmakeBool "XTENSOR_ENABLE_ASSERT" enableAssertions) (lib.cmakeBool "XTENSOR_CHECK_DIMENSION" enableBoundChecks) ];