llvm: add patch to fix build with gcc8

This commit is contained in:
Robin Gloster 2019-01-11 04:21:03 +01:00 committed by Franz Pletz
parent 75a91f685c
commit 5761727e21
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
{ stdenv
, fetch
, fetchpatch
, cmake
, python
, libffi
@ -43,6 +44,13 @@ stdenv.mkDerivation (rec {
propagatedBuildInputs = [ ncurses zlib ];
patches = [
(fetchpatch {
url = "https://bugzilla.redhat.com/attachment.cgi?id=1389687";
name = "llvm-gcc8-type-mismatch.patch";
sha256 = "0ga2123aclq3x9w72d0rm0az12m8c1i4r1106vh701hf4cghgbch";
})
];
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace cmake/modules/AddLLVM.cmake \
--replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)" \