From 8260aed123ea511cd10fb5a3385fe07cd12d349a Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 6 Nov 2022 22:28:31 -0800 Subject: rephrase to avoid mass-rebuild --- pkgs/development/libraries/boehm-gc/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix index 1a5924fbf55..0e7a936b4c2 100644 --- a/pkgs/development/libraries/boehm-gc/default.nix +++ b/pkgs/development/libraries/boehm-gc/default.nix @@ -32,14 +32,14 @@ stdenv.mkDerivation (finalAttrs: { # this stanza can be dropped when a release fixes this issue: # https://github.com/ivmai/bdwgc/issues/376 - makeFlags = lib.optionals (stdenv.hostPlatform.isPower64 && - lib.versionAtLeast finalAttrs.version "8.2.2") - [ + makeFlags = if (stdenv.hostPlatform.isPower64 && + lib.versionAtLeast finalAttrs.version "8.2.2") + then [ # do not use /proc primitives to track dirty bits; see: # https://github.com/ivmai/bdwgc/issues/479#issuecomment-1279687537 # https://github.com/ivmai/bdwgc/blob/54522af853de28f45195044dadfd795c4e5942aa/include/private/gcconfig.h#L741 "CFLAGS_EXTRA=-DNO_SOFT_VDB" - ]; + ] else null; # `gctest` fails under emulation on aarch64-darwin doCheck = !(stdenv.isDarwin && stdenv.isx86_64); -- cgit 1.4.1