Skip to content

Commit

Permalink
libomxil-bellagio: fix compiling with llvm
Browse files Browse the repository at this point in the history
Adds a new check which adds cflags when building with LLVM.

Ref: NixOS#311001
  • Loading branch information
RossComputerGuy committed May 15, 2024
1 parent 311cd0a commit 089abcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/development/libraries/libomxil-bellagio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ 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 if stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17" then "-Wno-error=unused-but-set-variable"
else "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion";

meta = with lib; {
Expand Down

0 comments on commit 089abcd

Please sign in to comment.