protobuf, perf: fix my bad condition on gcc version

This commit is contained in:
Vladimír Čunát 2017-02-04 20:58:47 +01:00
parent d2a571aacd
commit 73d798549f
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
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";
optionalString (hasPrefix "gcc-6" stdenv.cc.cc.name) "-Wno-error=misleading-indentation";
meta = {
description = "Google's data interchange format";

View File

@ -34,7 +34,7 @@ stdenv.mkDerivation {
"-Wno-error=cpp" "-Wno-error=bool-compare" "-Wno-error=deprecated-declarations"
]
# gcc before 6 doesn't know these options
++ stdenv.lib.optionals (hasPrefix "gcc-6" stdenv.cc.cc) [
++ stdenv.lib.optionals (hasPrefix "gcc-6" stdenv.cc.cc.name) [
"-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation"
];