llvmPackages_13.compiler-rt: fix build on darwin

Ported from cf4e1b9e62ab987552eb676f7618ea085f12a751.

(cherry picked from commit 6a1354b1fc14dfd549bd88f58aede0178f489415)
This commit is contained in:
Michael Weiss
2021-09-03 11:40:24 +02:00
parent cb51b0e984
commit 80f644e0d2
2 changed files with 73 additions and 0 deletions
@@ -60,6 +60,8 @@ stdenv.mkDerivation {
# extra `/`.
./normalize-var.patch
]# ++ lib.optional stdenv.hostPlatform.isMusl ./sanitizers-nongnu.patch
# Prevent a compilation error on darwin
++ lib.optional stdenv.hostPlatform.isDarwin ./darwin-targetconditionals.patch
++ lib.optional stdenv.hostPlatform.isAarch32 ./armv7l.patch;
# TSAN requires XPC on Darwin, which we have no public/free source files for. We can depend on the Apple frameworks