llvmPackages_12.compiler-rt: fix build race aarch64-darwin

https://github.com/llvm/llvm-project/commit/b31080c596246bc26d2493cfd5e07f053cf9541c
(cherry picked from commit 47a4caf483)
(cherry picked from commit c5d97e05777a018712e2388ce736be80eb20b24a)
This commit is contained in:
Reno Dakota
2024-11-30 15:11:11 +01:00
committed by Vladimír Čunát
parent 0c1ab1f5b5
commit 85492cd5fd
@@ -1006,6 +1006,13 @@ let
++ [
(metadata.getVersionFile "compiler-rt/X86-support-extension.patch") # Add support for i486 i586 i686 by reusing i386 config
]
++ lib.optional (lib.versions.major metadata.release_version == "12") (fetchpatch {
# fixes the parallel build on aarch64 darwin
name = "fix-symlink-race-aarch64-darwin.patch";
url = "https://github.com/llvm/llvm-project/commit/b31080c596246bc26d2493cfd5e07f053cf9541c.patch";
relative = "compiler-rt";
hash = "sha256-Cv2NC8402yU7QaTR6TzdH+qyWRy+tTote7KKWtKRWFQ=";
})
++ lib.optional (
lib.versions.major metadata.release_version == "12"
|| (