Merge pull request #273688 from wegank/phonon-darwin

libsForQt5.phonon: fix build on darwin
This commit is contained in:
Weijia Wang 2023-12-12 19:45:23 +01:00 committed by GitHub
commit 4efd772e60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,11 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
env.NIX_CFLAGS_COMPILE = "-fPIC";
env.NIX_CFLAGS_COMPILE = toString ([
"-fPIC"
] ++ lib.optionals stdenv.cc.isClang [
"-Wno-error=enum-constexpr-conversion"
]);
cmakeBuildType = if debug then "Debug" else "Release";