python313Packages.pillow-heif: remove -Werror
clang fails due a warning switching `-Ofast` -> `-O3` while building with `-Werror`.
This commit is contained in:
@@ -40,6 +40,8 @@ buildPythonPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/addopts/d' pyproject.toml
|
||||
substituteInPlace setup.py \
|
||||
--replace-warn ', "-Werror"' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -60,9 +62,6 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
env = {
|
||||
# clang-16: error: argument unused during compilation: '-fno-strict-overflow'
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument";
|
||||
|
||||
RELEASE_FULL_FLAG = 1;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user