llvm*: compiler-rt: fix build w/glibc-2.31

https://hydra.nixos.org/build/122885657 and more.

Original upstream fix (available in llvm_10):

   https://github.com/llvm/llvm-project/commit/947f9692440836dcb8d88b74b69dd379d85974ce
This commit is contained in:
Maximilian Bosch
2020-06-29 14:41:43 +02:00
parent 44fb6cc037
commit 2c60e7c2d0
6 changed files with 55 additions and 0 deletions
@@ -47,6 +47,7 @@ stdenv.mkDerivation {
patches = [
./compiler-rt-codesign.patch # Revert compiler-rt commit that makes codesign mandatory
../7/compiler-rt-glibc.patch
] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./sanitizers-nongnu.patch
++ stdenv.lib.optional (stdenv.hostPlatform.libc == "glibc") ./compiler-rt-sys-ustat.patch
++ stdenv.lib.optional stdenv.hostPlatform.isAarch32 ./compiler-rt-armv7l.patch;