llvmPackages_12.compiler-rt: move codesign patch into versioned dir

All LLVM versions < 12 have been removed, so this patch can live in the
versioned directory, simplifying the patch list in the process.
This commit is contained in:
sternenseemann
2024-11-08 23:30:29 +01:00
parent ee9eacf23e
commit 8408b91e8d
2 changed files with 3 additions and 7 deletions
@@ -1002,13 +1002,9 @@ let
);
compiler-rtPatches =
lib.optionals (lib.versions.major metadata.release_version == "12") [
# Revert compiler-rt commit that makes codesign mandatory
./compiler-rt/7-12-codesign.patch
]
++ lib.optional (
lib.versionAtLeast metadata.release_version "13" && lib.versionOlder metadata.release_version "15"
) (metadata.getVersionFile "compiler-rt/codesign.patch") # Revert compiler-rt commit that makes codesign mandatory
lib.optional (lib.versionOlder metadata.release_version "15") (
metadata.getVersionFile "compiler-rt/codesign.patch"
) # Revert compiler-rt commit that makes codesign mandatory
++ [
(metadata.getVersionFile "compiler-rt/X86-support-extension.patch") # Add support for i486 i586 i686 by reusing i386 config
]