Merge pull request #311810 from ExpidusOS/fix/llvm/libomxil-bellagio

libomxil-bellagio: fix compiling with llvm
This commit is contained in:
Pol Dellaiera 2024-05-20 09:17:23 +02:00 committed by GitHub
commit 2b789f6064
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,9 @@ stdenv.mkDerivation rec {
env.NIX_CFLAGS_COMPILE =
# stringop-truncation: see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028978
if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8 -Wno-error=stringop-truncation"
else "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion";
else let
isLLVM17 = stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17";
in "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion${lib.optionalString (isLLVM17) " -Wno-error=unused-but-set-variable"}";
meta = with lib; {
homepage = "https://omxil.sourceforge.net/";