OVMF: enable compilation using Clang

Disable -Wno-unneeded-internal-declaration causing the build to fail due to -Wall with Clang.
This commit is contained in:
Martin Joerg 2024-08-27 15:14:51 +00:00
parent 0bb9616782
commit aea24a3839
2 changed files with 7 additions and 1 deletions

View File

@ -191,6 +191,6 @@ edk2.mkDerivation projectDscPath (finalAttrs: {
license = lib.licenses.bsd2;
platforms = metaPlatforms;
maintainers = with lib.maintainers; [ adamcstephens raitobezarius mjoerg ];
broken = stdenv.isDarwin;
broken = stdenv.isDarwin && stdenv.isAarch64;
};
})

View File

@ -92,6 +92,12 @@ edk2 = stdenv.mkDerivation {
lib.concatStrings
]}
)
# enable compilation using Clang
# https://bugzilla.tianocore.org/show_bug.cgi?id=4620
substituteInPlace BaseTools/Conf/tools_def.template --replace-fail \
'DEFINE CLANGPDB_WARNING_OVERRIDES = ' \
'DEFINE CLANGPDB_WARNING_OVERRIDES = -Wno-unneeded-internal-declaration '
'';
};