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
@@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
patches = [
../7/compiler-rt-glibc.patch
./compiler-rt-codesign.patch # Revert compiler-rt commit that makes codesign mandatory
]# ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./sanitizers-nongnu.patch
++ stdenv.lib.optional stdenv.hostPlatform.isAarch32 ./compiler-rt-armv7l.patch;