llvmPackages_8.llvm: fix build with gcc 10
This commit is contained in:
parent
c2fca99f97
commit
d6e3307291
|
@ -1,5 +1,6 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, fetch
|
, fetch
|
||||||
|
, fetchpatch
|
||||||
, cmake
|
, cmake
|
||||||
, python3
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
|
@ -55,6 +56,14 @@ in stdenv.mkDerivation ({
|
||||||
|
|
||||||
propagatedBuildInputs = [ ncurses zlib ];
|
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 ''
|
postPatch = optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace cmake/modules/AddLLVM.cmake \
|
substituteInPlace cmake/modules/AddLLVM.cmake \
|
||||||
--replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)" \
|
--replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)" \
|
||||||
|
|
Loading…
Reference in New Issue