forked from mirrors/nixpkgs
protobuf-3.x: fixup build with default gcc version
/cc @globin a3a0e8fe6
.
http://hydra.nixos.org/build/47266085
This commit is contained in:
parent
db896154d1
commit
cc07ec890d
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue