ghcWithPackages: set withLLVM if hostPlatform is not x86_64

We also don't add LLVM on PowerPC as GHC should have the ability to
generate native code for that platform itself.

Resolves #116235.
This commit is contained in:
sternenseemann 2021-05-02 13:07:49 +02:00
parent 5d4dc79acb
commit 9a2e728831

View file

@ -1,5 +1,5 @@
{ lib, stdenv, ghc, llvmPackages, packages, symlinkJoin, makeWrapper
, withLLVM ? false
, withLLVM ? !(stdenv.hostPlatform.isx86_64 || stdenv.hostPlatform.isPowerPC)
, postBuild ? ""
, ghcLibdir ? null # only used by ghcjs, when resolving plugins
}: