Unverified Commit 8931a9e6 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

crc32c: fixup build on darwin

https://hydra.nixos.org/build/307924644/nixlog/3/tail

The issue is in tests; the patch that we picked because cmake 4
would maybe even fix it, but we excluded the third_party/ dir
where this problem originates.
parent 015cac23
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -32,7 +32,10 @@ stdenv.mkDerivation rec {
  nativeBuildInputs = [ cmake ];
  buildInputs = [ gflags ];

  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch64 "-march=armv8-a+crc";
  env.NIX_CFLAGS_COMPILE =
    lib.optionalString stdenv.hostPlatform.isAarch64 "-march=armv8-a+crc"
    # TODO: probably fixed for version > 1.1.2
    + lib.optionalString stdenv.cc.isClang " -Wno-error=character-conversion";

  cmakeFlags = [
    "-DCRC32C_INSTALL=1"