Skip to content

Commit

Permalink
linuxPackages*.perf: fix build with default gcc
Browse files Browse the repository at this point in the history
Broken since 9842a10.
  • Loading branch information
vcunat committed Feb 3, 2017
1 parent adab4cd commit e7c968f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/os-specific/linux/kernel/perf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ stdenv.mkDerivation {
# bad `ld' and other stuff.
NIX_CFLAGS_COMPILE = [
"-Wno-error=cpp" "-Wno-error=bool-compare" "-Wno-error=deprecated-declarations"
"-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation"
];
]
# gcc before 6 doesn't know these options
++ stdenv.lib.optionals (hasPrefix "gcc-6" stdenv.cc.cc) [
"-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation"
];

installFlags = "install install-man ASCIIDOC8=1";

Expand Down

0 comments on commit e7c968f

Please sign in to comment.