mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
anbox: fix build
Fixes: https://github.com/NixOS/nixpkgs/issues/282601 > error: redundant move in initialization
This commit is contained in:
parent
5e2aa82c00
commit
d96e848233
@ -80,10 +80,13 @@ stdenv.mkDerivation rec {
|
||||
systemd
|
||||
];
|
||||
|
||||
# Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now)
|
||||
env.NIX_CFLAGS_COMPILE = toString (lib.optionals (with stdenv; cc.isGNU && lib.versionAtLeast cc.version "12") [
|
||||
"-Wno-error=mismatched-new-delete"
|
||||
]);
|
||||
env.CXXFLAGS = toString [ "-include cstdint" ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU (toString [
|
||||
"-Wno-error=redundant-move"
|
||||
# Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now)
|
||||
(lib.optionalString (lib.versionAtLeast stdenv.cc.version "12") "-Wno-error=mismatched-new-delete")
|
||||
]);
|
||||
|
||||
prePatch = ''
|
||||
patchShebangs scripts
|
||||
|
Loading…
Reference in New Issue
Block a user