llvm_13: fix tests on non-x86 platforms

(cherry picked from commit 48d1e393c03cfbb9c00979a28f99f9a8bd2dac94)
This commit is contained in:
Yureka 2021-08-09 18:13:45 +02:00 committed by Michael Weiss
parent 036e4b3df8
commit 373402fb6d
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83

View File

@ -59,6 +59,13 @@ in stdenv.mkDerivation (rec {
sha256 = "18l6mrvm2vmwm77ckcnbjvh6ybvn72rhrb799d4qzwac4x2ifl7g";
stripLen = 1;
})
# Fix tests on non-x86 platforms: https://reviews.llvm.org/D107020
(fetchpatch {
url = "https://github.com/llvm/llvm-project/commit/5060224d9eed8b8359ed5090bb7c577b8575e9e7.patch";
sha256 = "1s2n3pqa11pmlifys1jkppmw858p5i64xszpc8ppc98middv19v1";
stripLen = 1;
})
] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch;
postPatch = optionalString stdenv.isDarwin ''