Commit 8260aed1 authored by Adam Joseph's avatar Adam Joseph
Browse files

rephrase to avoid mass-rebuild

parent 06ecc513
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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 &&
  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);