Skip to content

Commit

Permalink
gdb: support aarch64-darwin as a hostPlatform (NixOS#328712)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Aug 28, 2024
2 parents 3e2372a + 2b2bd54 commit b5f8f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/tools/misc/gdb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ let
in

assert pythonSupport -> python3 != null;
assert lib.asserts.assertMsg (stdenv.targetPlatform.system != "aarch64-darwin") "GDB does not support aarch64-darwin as a target";

stdenv.mkDerivation rec {
pname = targetPrefix + basename + lib.optionalString hostCpuOnly "-host-cpu-only";
Expand Down Expand Up @@ -154,8 +155,7 @@ stdenv.mkDerivation rec {

license = lib.licenses.gpl3Plus;

# GDB upstream does not support ARM darwin
platforms = with lib.platforms; linux ++ cygwin ++ freebsd ++ ["x86_64-darwin"];
platforms = with lib.platforms; linux ++ cygwin ++ freebsd ++ darwin;
maintainers = with lib.maintainers; [ pierron globin lsix ];
};
}

0 comments on commit b5f8f76

Please sign in to comment.