mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 23:17:48 +00:00
_7zz: fix build with clang 13+
7zz uses `-Weverything` and `-Werror`, which results in normally disabled warnings breaking the build with newer versions of clang.
This commit is contained in:
parent
dba6d77ad2
commit
c31f399f1c
@ -69,6 +69,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
] ++ lib.optionals stdenv.hostPlatform.isMinGW [
|
||||
"-Wno-conversion"
|
||||
"-Wno-unused-macros"
|
||||
] ++ lib.optionals stdenv.cc.isClang [
|
||||
"-Wno-declaration-after-statement"
|
||||
(lib.optionals (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "13") [
|
||||
"-Wno-reserved-identifier"
|
||||
"-Wno-unused-but-set-variable"
|
||||
])
|
||||
(lib.optionals (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "16") [
|
||||
"-Wno-unsafe-buffer-usage"
|
||||
"-Wno-cast-function-type-strict"
|
||||
])
|
||||
]);
|
||||
|
||||
inherit makefile;
|
||||
|
Loading…
Reference in New Issue
Block a user