Commit ae69d9e2 authored by David McFarland's avatar David McFarland
Browse files

cocom-tool-set: fix build on darwin

Using -std=gnu17 on clang++ is fatal, but only a warning on g++.
parent 413a3b11
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -16,11 +16,13 @@ stdenv.mkDerivation (finalAttrs: {

  env = {
    RANLIB = "${stdenv.cc.targetPrefix}gcc-ranlib";
    NIX_CFLAGS_COMPILE = toString [
    NIX_CFLAGS_COMPILE = toString (
      [
        "-Wno-error=implicit-int"
        "-Wno-error=implicit-function-declaration"
      "-std=gnu17"
    ];
      ]
      ++ lib.optional stdenv.cc.isGNU "-std=gnu17"
    );
  };

  autoreconfFlags = "REGEX";