diff options
author | Ryan Burns <rtburns@protonmail.com> | 2020-12-30 19:10:54 -0800 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2020-12-31 09:10:12 +0100 |
commit | d6e3307291bc93dcccd99d476efefe4ed59ffe2b (patch) | |
tree | d5dc77a84d5a2def5824640bd10a10f322155b5c /pkgs/development/compilers/llvm/8/llvm.nix | |
parent | c2fca99f975c6656f7a7d1355ca098606380f2be (diff) |
llvmPackages_8.llvm: fix build with gcc 10
Diffstat (limited to 'pkgs/development/compilers/llvm/8/llvm.nix')
-rw-r--r-- | pkgs/development/compilers/llvm/8/llvm.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/8/llvm.nix b/pkgs/development/compilers/llvm/8/llvm.nix index 0f6179c2d310f..fb928b67ad54e 100644 --- a/pkgs/development/compilers/llvm/8/llvm.nix +++ b/pkgs/development/compilers/llvm/8/llvm.nix @@ -1,5 +1,6 @@ { stdenv , fetch +, fetchpatch , cmake , python3 , libffi @@ -55,6 +56,14 @@ in stdenv.mkDerivation ({ propagatedBuildInputs = [ ncurses zlib ]; + patches = [ + # Fix missing includes for GCC 10 + (fetchpatch { + url = "https://bugs.gentoo.org/attachment.cgi?id=612792"; + sha256 = "0rwx6jpqq4xnf4mvfm8v2d4r34y1yi05am0mx5k2d5bha9j64lqg"; + }) + ]; + postPatch = optionalString stdenv.isDarwin '' substituteInPlace cmake/modules/AddLLVM.cmake \ --replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)" \ |