Merge pull request #202129 from aaronjheng/perf-build-warnings

perf-linux: tweak make flags to supress build warnings
This commit is contained in:
Sergei Trofimovich 2022-11-27 08:42:39 +00:00 committed by GitHub
commit 9fec8fc209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,10 @@ stdenv.mkDerivation {
patchShebangs pmu-events/jevents.py
'';
makeFlags = [ "prefix=$(out)" "WERROR=0" ] ++ kernel.makeFlags;
makeFlags = [ "prefix=$(out)" "WERROR=0" "ASCIIDOC8=1" ] ++ kernel.makeFlags
++ lib.optional (!withGtk) "NO_GTK2=1"
++ lib.optional (!withZstd) "NO_LIBZSTD=1"
++ lib.optional (!withLibcap) "NO_LIBCAP=1";
hardeningDisable = [ "format" ];
@ -127,7 +130,7 @@ stdenv.mkDerivation {
doCheck = false; # requires "sparse"
installFlags = [ "install" "install-man" "ASCIIDOC8=1" "prefix=$(out)" ];
installTargets = [ "install" "install-man" ];
# TODO: Add completions based on perf-completion.sh
postInstall = ''