linuxPackages.perf: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-05 01:55:45 +01:00
parent a2ab758457
commit d98aee819f
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -50,10 +50,7 @@ stdenv.mkDerivation {
"-Wno-error=bool-compare"
"-Wno-error=deprecated-declarations"
"-DOBJDUMP_PATH=\"${binutils}/bin/objdump\""
]
# gcc before 6 doesn't know these options
++ stdenv.lib.optionals (hasPrefix "gcc-6" stdenv.cc.cc.name) [
"-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation"
"-Wno-error=stringop-truncation"
];
doCheck = false; # requires "sparse"