Skip to content

Commit

Permalink
protobuf-3.x: fixup build with default gcc version
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Jan 30, 2017
1 parent db89615 commit cc07ec8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/libraries/protobuf/generic-v3.nix
Expand Up @@ -34,7 +34,9 @@ stdenv.mkDerivation rec {

doCheck = true;

NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation";
NIX_CFLAGS_COMPILE = with stdenv.lib;
# gcc before 6 doesn't know this option
optionalString (hasPrefix "gcc-6" stdenv.cc.cc) "-Wno-error=misleading-indentation";

meta = {
description = "Google's data interchange format";
Expand Down

1 comment on commit cc07ec8

@vcunat
Copy link
Member Author

@vcunat vcunat commented on cc07ec8 Feb 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same: e7c968f; hopefully all similar ones now.

Please sign in to comment.