Merge pull request #80355 from thefloweringash/ghc-aarch64-llvm
haskell.compiler.ghc822Binary: propagate llvm dependency
This commit is contained in:
commit
00373dacd3
pkgs/development/compilers/ghc
|
@ -1,12 +1,15 @@
|
||||||
{ stdenv, substituteAll
|
{ stdenv, substituteAll
|
||||||
, fetchurl, perl, gcc, llvm
|
, fetchurl, perl, gcc, llvm
|
||||||
, ncurses5, gmp, glibc, libiconv
|
, ncurses5, gmp, glibc, libiconv
|
||||||
|
, llvmPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Prebuilt only does native
|
# Prebuilt only does native
|
||||||
assert stdenv.targetPlatform == stdenv.hostPlatform;
|
assert stdenv.targetPlatform == stdenv.hostPlatform;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
useLLVM = !stdenv.targetPlatform.isx86;
|
||||||
|
|
||||||
libPath = stdenv.lib.makeLibraryPath ([
|
libPath = stdenv.lib.makeLibraryPath ([
|
||||||
ncurses5 gmp
|
ncurses5 gmp
|
||||||
] ++ stdenv.lib.optional (stdenv.hostPlatform.isDarwin) libiconv);
|
] ++ stdenv.lib.optional (stdenv.hostPlatform.isDarwin) libiconv);
|
||||||
|
@ -53,7 +56,7 @@ stdenv.mkDerivation rec {
|
||||||
or (throw "cannot bootstrap GHC on this platform"));
|
or (throw "cannot bootstrap GHC on this platform"));
|
||||||
|
|
||||||
nativeBuildInputs = [ perl ];
|
nativeBuildInputs = [ perl ];
|
||||||
buildInputs = stdenv.lib.optionals (stdenv.targetPlatform.isAarch32 || stdenv.targetPlatform.isAarch64) [ llvm ];
|
propagatedBuildInputs = stdenv.lib.optionals useLLVM [ llvmPackages.llvm ];
|
||||||
|
|
||||||
# Cannot patchelf beforehand due to relative RPATHs that anticipate
|
# Cannot patchelf beforehand due to relative RPATHs that anticipate
|
||||||
# the final install location/
|
# the final install location/
|
||||||
|
|
Loading…
Reference in New Issue