Skip to content

Commit

Permalink
llvmPackages_{12,13}.lldb: don't try to find nonexistent patch
Browse files Browse the repository at this point in the history
We just need to make sure the attribute evaluates so we can cleanly
access `meta.broken` for those versions.
  • Loading branch information
sternenseemann committed Oct 15, 2024
1 parent 60a1d9c commit 212ddd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/compilers/llvm/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,12 @@ let
#
# See here for some context:
# https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272129132
#
# Patch is applied for >= 14 as the versions below are broken anyways.
++ lib.optional (
stdenv.targetPlatform.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0"
lib.versionAtLeast metadata.release_version "14"
&& stdenv.targetPlatform.isDarwin
&& lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0"
) (metadata.getVersionFile "lldb/cpu_subtype_arm64e_replacement.patch");
}
// lib.optionalAttrs (lib.versions.major metadata.release_version == "16") {
Expand Down

0 comments on commit 212ddd2

Please sign in to comment.