3
0
Fork 0
forked from mirrors/nixpkgs

swift: fix build

since the linuxHeaders bump to 5.14,
we need to patch out cyclades.h includes
This commit is contained in:
Ryan Burns 2021-10-22 00:34:30 -07:00
parent 22e732d03c
commit cac89e1501

View file

@ -252,6 +252,7 @@ stdenv.mkDerivation {
# LLVM toolchain patches.
patch -p1 -d llvm-project/clang -i ${./patches/0005-clang-toolchain-dir.patch}
patch -p1 -d llvm-project/clang -i ${./patches/0006-clang-purity.patch}
patch -p1 -d llvm-project/compiler-rt -i ${../llvm/common/compiler-rt/libsanitizer-no-cyclades-11.patch}
substituteInPlace llvm-project/clang/lib/Driver/ToolChains/Linux.cpp \
--replace 'SysRoot + "/lib' '"${glibc}/lib" "' \
--replace 'SysRoot + "/usr/lib' '"${glibc}/lib" "' \