Skip to content

Commit

Permalink
anbox: fix build
Browse files Browse the repository at this point in the history
Fixes: #282601

  > error: redundant move in initialization
  • Loading branch information
superherointj committed Jan 25, 2024
1 parent 5e2aa82 commit d96e848
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkgs/os-specific/linux/anbox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d96e848

Please sign in to comment.