mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 01:15:51 +00:00
Merge pull request #311810 from ExpidusOS/fix/llvm/libomxil-bellagio
libomxil-bellagio: fix compiling with llvm
This commit is contained in:
commit
2b789f6064
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user