llvmPackages_13.compiler-rt: fix build on darwin
Ported from cf4e1b9e62ab987552eb676f7618ea085f12a751. (cherry picked from commit 6a1354b1fc14dfd549bd88f58aede0178f489415)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user